Privacy: Revert [43525].
The commenter cookies checkbox is not legally required, so should be disabled by default. Fixes #44373. Built from https://develop.svn.wordpress.org/trunk@43531 git-svn-id: http://core.svn.wordpress.org/trunk@43360 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -2271,7 +2271,7 @@ function comment_form( $args = array(), $post_id = null ) {
|
||||
'<input id="url" name="url" ' . ( $html5 ? 'type="url"' : 'type="text"' ) . ' value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" maxlength="200" /></p>',
|
||||
);
|
||||
|
||||
if ( has_action( 'set_comment_cookies', 'wp_set_comment_cookies' ) ) {
|
||||
if ( has_action( 'set_comment_cookies', 'wp_set_comment_cookies' ) && get_option( 'show_comments_cookies_opt_in' ) ) {
|
||||
$consent = empty( $commenter['comment_author_email'] ) ? '' : ' checked="checked"';
|
||||
$fields['cookies'] = '<p class="comment-form-cookies-consent"><input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes"' . $consent . ' />' .
|
||||
'<label for="wp-comment-cookies-consent">' . __( 'Save my name, email, and website in this browser for the next time I comment.' ) . '</label></p>';
|
||||
|
||||
Reference in New Issue
Block a user