From 2a643a7f56938f03deac4538d0124b919ca425a2 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 27 Aug 2008 18:00:51 +0000 Subject: [PATCH] RSS widget shouldn't link if there isn't a link. Props MtDewVirus. fixes #7614 git-svn-id: https://develop.svn.wordpress.org/trunk@8746 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/widgets.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/wp-includes/widgets.php b/wp-includes/widgets.php index 2efd7a4057..744b07a726 100644 --- a/wp-includes/widgets.php +++ b/wp-includes/widgets.php @@ -1162,8 +1162,12 @@ function wp_widget_rss_output( $rss, $args = array() ) { $author = ' ' . wp_specialchars( strip_tags( $item['author_name'] ) ) . ''; } - echo "
  • $title{$date}{$summary}{$author}
  • "; - } + if ( $link == '' ) { + echo "
  • $title{$date}{$summary}{$author}
  • "; + } else { + echo "
  • $title{$date}{$summary}{$author}
  • "; + } +} echo ''; } else { echo '';