From 68a6949d446fc978a50e71c405bd1d0a496d597c Mon Sep 17 00:00:00 2001 From: westi Date: Wed, 27 May 2009 21:51:25 +0000 Subject: [PATCH] Check to see if we have an author before displaying it. See #9948. git-svn-id: http://svn.automattic.com/wordpress/trunk@11471 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/default-widgets.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-includes/default-widgets.php b/wp-includes/default-widgets.php index f5159809a..d2bebc802 100644 --- a/wp-includes/default-widgets.php +++ b/wp-includes/default-widgets.php @@ -823,8 +823,10 @@ function wp_widget_rss_output( $rss, $args = array() ) { $author = ''; if ( $show_author ) { $author = $item->get_author(); - $author = $author->get_name(); - $author = ' ' . esc_html( strip_tags( $author ) ) . ''; + if ( is_object($author) ) { + $author = $author->get_name(); + $author = ' ' . esc_html( strip_tags( $author ) ) . ''; + } } if ( $link == '' ) {