Ticket #16612: 16612.diff
File 16612.diff, 1.3 KB (added by , 10 years ago) |
---|
-
wp-includes/class-wp.php
370 370 $status = null; 371 371 $exit_required = false; 372 372 373 if ( is_user_logged_in() )373 if ( is_user_logged_in() || are_comment_cookies_set() ) 374 374 $headers = array_merge($headers, wp_get_nocache_headers()); 375 375 if ( ! empty( $this->query_vars['error'] ) ) { 376 376 $status = (int) $this->query_vars['error']; -
wp-includes/comment-functions.php
2762 2762 return get_comment( $comment_id ); 2763 2763 2764 2764 } 2765 2766 /** 2767 * Checks if any of the comment author cache cookies are present. 2768 * 2769 * This function checks if any of the 'comment_author_', 'comment_author_email_' or 'comment_author_url_' cookies are present. 2770 * 2771 * @since 4.4.0 2772 * @return bool True if any of the cookies are present. 2773 */ 2774 function are_comment_cookies_set() { 2775 return isset( $_COOKIE['comment_author_' . COOKIEHASH] ) || isset( $_COOKIE['comment_author_email_' . COOKIEHASH] ) || isset( $_COOKIE['comment_author_url_' . COOKIEHASH] ); 2776 2777 } 2778 No newline at end of file