Make WordPress Core


Ignore:
Timestamp:
07/24/2018 05:05:56 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Privacy: Revert [43525].

The commenter cookies checkbox is not legally required, so should be disabled by default.

Fixes #44373.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/comment-template.php

    r43525 r43531  
    22722272    );
    22732273
    2274     if ( has_action( 'set_comment_cookies', 'wp_set_comment_cookies' ) ) {
     2274    if ( has_action( 'set_comment_cookies', 'wp_set_comment_cookies' ) && get_option( 'show_comments_cookies_opt_in' ) ) {
    22752275        $consent           = empty( $commenter['comment_author_email'] ) ? '' : ' checked="checked"';
    22762276        $fields['cookies'] = '<p class="comment-form-cookies-consent"><input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes"' . $consent . ' />' .
Note: See TracChangeset for help on using the changeset viewer.