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/tests/phpunit/tests/comment/commentForm.php

    r43525 r43531  
    8888        $p = self::factory()->post->create();
    8989
     90        add_filter( 'option_show_comments_cookies_opt_in', '__return_true' );
     91
    9092        $args = array(
    9193            'fields' => array(
     
    9597        $form = get_echo( 'comment_form', array( $args, $p ) );
    9698
     99        remove_filter( 'option_show_comments_cookies_opt_in', '__return_true' );
     100
    97101        $this->assertRegExp( '|<p class="comment\-form\-cookies\-consent">.*?</p>|', $form );
    98102    }
Note: See TracChangeset for help on using the changeset viewer.