From cc19b4a39737213575e85af4e2708c58b5eac04d Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Mon, 23 Sep 2013 21:44:09 +0000 Subject: [PATCH] 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 --- wp-includes/class-wp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/class-wp.php b/wp-includes/class-wp.php index 56a5561f13..e7191b6161 100644 --- a/wp-includes/class-wp.php +++ b/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 ); }