Make WordPress Core


Ignore:
Timestamp:
07/17/2018 09:07:29 AM (6 years ago)
Author:
azaozz
Message:

Privacy: Add a setting to disable comment cookie consent.

Fixes #44373.

File:
1 edited

Legend:

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

    r43370 r43469  
    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.