Index: branches/4.9/src/wp-includes/comment-template.php =================================================================== --- branches/4.9/src/wp-includes/comment-template.php (revision 43306) +++ branches/4.9/src/wp-includes/comment-template.php (revision 43449) @@ -2197,5 +2197,4 @@ $html_req = ( $req ? " required='required'" : '' ); $html5 = 'html5' === $args['format']; - $consent = empty( $commenter['comment_author_email'] ) ? '' : ' checked="checked"'; $fields = array( 'author' => '
' . '
', - 'cookies' => ' ', ); - $required_text = sprintf( ' ' . __('Required fields are marked %s'), '*' ); + if ( has_action( 'set_comment_cookies', 'wp_set_comment_cookies' ) ) { + $consent = empty( $commenter['comment_author_email'] ) ? '' : ' checked="checked"'; + $fields['cookies'] = ' '; + } + + $required_text = sprintf( ' ' . __( 'Required fields are marked %s' ), '*' ); /**