Avoid a notice. see #14408, [25574].
Built from https://develop.svn.wordpress.org/trunk@25585 git-svn-id: http://core.svn.wordpress.org/trunk@25502 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
681b1c35b5
commit
cc19b4a397
|
@ -468,7 +468,7 @@ class WP {
|
|||
$GLOBALS['single'] = 1;
|
||||
}
|
||||
|
||||
if ( $wp_query->is_author() && $wp_query->post )
|
||||
if ( $wp_query->is_author() && isset( $wp_query->post ) )
|
||||
$GLOBALS['authordata'] = get_userdata( $wp_query->post->post_author );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue