diff --git a/src/wp-includes/comment-template.php b/src/wp-includes/comment-template.php index 52f1e11521..671c2298e5 100644 --- a/src/wp-includes/comment-template.php +++ b/src/wp-includes/comment-template.php @@ -2260,6 +2260,7 @@ function comment_form( $args = array(), $post_id = null ) { $req = get_option( 'require_name_email' ); $html_req = ( $req ? " required='required'" : '' ); $html5 = 'html5' === $args['format']; + $consent = empty( $commenter['comment_author_email'] ) ? '' : ' checked="checked"'; $fields = array( 'author' => '

' . ' ' . '

', @@ -2268,7 +2269,7 @@ function comment_form( $args = array(), $post_id = null ) { 'url' => '

' . '

', 'cookies' => '', );