WordPress.org

Make WordPress Core

Ticket #44736: #44736.patch

File #44736.patch, 478 bytes (added by dhavalkasvala, 3 years ago)
  • comment.php

     
    553553                return;
    554554        }
    555555
    556         if ( false === $cookies_consent ) {
     556        if ( false === $cookies_consent && ! get_option( 'show_comments_cookies_opt_in' ) ) {
    557557                // Remove any existing cookies.
    558558                $past = time() - YEAR_IN_SECONDS;
    559559                setcookie( 'comment_author_' . COOKIEHASH, ' ', $past, COOKIEPATH, COOKIE_DOMAIN );