Avoid a notice. see #14408, [25574].
git-svn-id: https://develop.svn.wordpress.org/trunk@25585 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b8a50e4cdd
commit
1929aeb1c3
@ -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…
x
Reference in New Issue
Block a user