is_user_logged_in()

git-svn-id: https://develop.svn.wordpress.org/trunk@3309 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2005-12-15 16:31:41 +00:00
parent 8b4c730141
commit ecea3fad26
3 changed files with 12 additions and 2 deletions

View File

@@ -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 );