summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--wp-includes/widgets.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/wp-includes/widgets.php b/wp-includes/widgets.php
index 73e1f6e..2a71a02 100644
--- a/wp-includes/widgets.php
+++ b/wp-includes/widgets.php
@@ -1162,12 +1162,8 @@ function wp_widget_rss_output( $rss, $args = array() ) {
$author = ' <cite>' . wp_specialchars( strip_tags( $item['author_name'] ) ) . '</cite>';
}
- if ( $link == '' ) {
- echo "<li>$title{$date}{$summary}{$author}</li>";
- } else {
- echo "<li><a class='rsswidget' href='$link' title='$desc'>$title</a>{$date}{$summary}{$author}</li>";
- }
-}
+ echo "<li><a class='rsswidget' href='$link' title='$desc'>$title</a>{$date}{$summary}{$author}</li>";
+ }
echo '</ul>';
} else {
echo '<ul><li>' . __( 'An error has occurred; the feed is probably down. Try again later.' ) . '</li></ul>';