WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/24/2018 12:50:55 PM (2 years ago)
Author:
SergeyBiryukov
Message:

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

This needs some more work to ensure expected behaviour.

See #44373.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/comment/commentForm.php

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