From 1929aeb1c3d318c575e64e738cc1e87e2e40cce1 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Mon, 23 Sep 2013 21:43:25 +0000 Subject: [PATCH] Avoid a notice. see #14408, [25574]. git-svn-id: https://develop.svn.wordpress.org/trunk@25585 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/class-wp.php b/src/wp-includes/class-wp.php index 56a5561f13..e7191b6161 100644 --- a/src/wp-includes/class-wp.php +++ b/src/wp-includes/class-wp.php @@ -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 ); }