mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-01 03:04:34 +00:00
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:
@@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user