mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Privacy: Revert [43525].
The commenter cookies checkbox is not legally required, so should be disabled by default. Fixes #44373. git-svn-id: https://develop.svn.wordpress.org/trunk@43531 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -87,6 +87,8 @@ class Tests_Comment_CommentForm extends WP_UnitTestCase {
|
||||
public function test_fields_should_include_cookies_consent() {
|
||||
$p = self::factory()->post->create();
|
||||
|
||||
add_filter( 'option_show_comments_cookies_opt_in', '__return_true' );
|
||||
|
||||
$args = array(
|
||||
'fields' => array(
|
||||
'author' => 'Hello World!',
|
||||
@@ -94,6 +96,8 @@ class Tests_Comment_CommentForm extends WP_UnitTestCase {
|
||||
);
|
||||
$form = get_echo( 'comment_form', array( $args, $p ) );
|
||||
|
||||
remove_filter( 'option_show_comments_cookies_opt_in', '__return_true' );
|
||||
|
||||
$this->assertRegExp( '|<p class="comment\-form\-cookies\-consent">.*?</p>|', $form );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user