Ticket #44736: 44736.diff
File 44736.diff, 511 bytes (added by , 4 years ago) |
---|
-
src/wp-comments-post.php
40 40 } 41 41 42 42 $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' ) ); 44 44 45 45 /** 46 46 * Perform other actions when comment cookies are set.