Make WordPress Core

Ticket #44736: 44736.diff

File 44736.diff, 511 bytes (added by desrosj, 4 years ago)
  • src/wp-comments-post.php

     
    4040}
    4141
    4242$user            = wp_get_current_user();
    43 $cookies_consent = ( isset( $_POST['wp-comment-cookies-consent'] ) );
     43$cookies_consent = ( isset( $_POST['wp-comment-cookies-consent'] ) || ! get_option( 'show_comments_cookies_opt_in' ) );
    4444
    4545/**
    4646 * Perform other actions when comment cookies are set.