mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
is_user_logged_in()
git-svn-id: https://develop.svn.wordpress.org/trunk@3309 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1563,7 +1563,7 @@ class WP {
|
||||
function send_headers() {
|
||||
global $current_user;
|
||||
@header('X-Pingback: '. get_bloginfo('pingback_url'));
|
||||
if ( $current_user )
|
||||
if ( is_user_logged_in() )
|
||||
nocache_headers();
|
||||
if ( !empty($this->query_vars['error']) && '404' == $this->query_vars['error'] ) {
|
||||
status_header( 404 );
|
||||
|
||||
Reference in New Issue
Block a user