diff --git a/wp-includes/author-template.php b/wp-includes/author-template.php index 641b69d46..926ec49ff 100644 --- a/wp-includes/author-template.php +++ b/wp-includes/author-template.php @@ -203,6 +203,8 @@ function the_author_posts_link($deprecated = '') { _deprecated_argument( __FUNCTION__, '2.1' ); global $authordata; + if ( !is_object( $authordata ) ) + return false; $link = sprintf( '%3$s', get_author_posts_url( $authordata->ID, $authordata->user_nicename ),