Privacy: Remove the setting to enable comment cookies consent added in [43469].

This needs some more work to ensure expected behaviour.

See #44373.

git-svn-id: https://develop.svn.wordpress.org/trunk@43525 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2018-07-24 12:50:55 +00:00
parent 3aba622692
commit 335b69cedc
5 changed files with 1 additions and 16 deletions

View File

@@ -87,8 +87,6 @@ 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!',
@@ -96,8 +94,6 @@ 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 );
}
}