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:
Andrew Nacin 2013-09-23 21:43:25 +00:00
parent b8a50e4cdd
commit 1929aeb1c3
1 changed files with 1 additions and 1 deletions

View File

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