mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-27 18:16:08 +00:00
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
This commit is contained in:
parent
a3c2702e3a
commit
68a6949d44
@ -823,9 +823,11 @@ function wp_widget_rss_output( $rss, $args = array() ) {
|
|||||||
$author = '';
|
$author = '';
|
||||||
if ( $show_author ) {
|
if ( $show_author ) {
|
||||||
$author = $item->get_author();
|
$author = $item->get_author();
|
||||||
|
if ( is_object($author) ) {
|
||||||
$author = $author->get_name();
|
$author = $author->get_name();
|
||||||
$author = ' <cite>' . esc_html( strip_tags( $author ) ) . '</cite>';
|
$author = ' <cite>' . esc_html( strip_tags( $author ) ) . '</cite>';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ( $link == '' ) {
|
if ( $link == '' ) {
|
||||||
echo "<li>$title{$date}{$summary}{$author}</li>";
|
echo "<li>$title{$date}{$summary}{$author}</li>";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user