WordPress.org

Make WordPress Core

Ticket #47670: 47670.1.diff

File 47670.1.diff, 965 bytes (added by audrasjb, 2 years ago)

Remove double link in Widget RSS

  • src/wp-includes/widgets/class-wp-widget-rss.php

    diff --git a/src/wp-includes/widgets/class-wp-widget-rss.php b/src/wp-includes/widgets/class-wp-widget-rss.php
    index 570e7bb..2d057eb 100644
    a b class WP_Widget_RSS extends WP_Widget { 
    8787                $url  = strip_tags( $url );
    8888                $icon = includes_url( 'images/rss.png' );
    8989                if ( $title ) {
    90                         $title = '<a class="rsswidget" href="' . esc_url( $url ) . '"><img class="rss-widget-icon" style="border:0" width="14" height="14" src="' . esc_url( $icon ) . '" alt="RSS" /></a> <a class="rsswidget" href="' . esc_url( $link ) . '">' . esc_html( $title ) . '</a>';
     90                        $title = '<a class="rsswidget" href="' . esc_url( $url ) . '"><img class="rss-widget-icon" style="border:0" width="14" height="14" src="' . esc_url( $icon ) . '" alt="" /> <span class="rsswidget rsswidget-text">' . esc_html( $title ) . '</span></a>';
    9191                }
    9292
    9393                echo $args['before_widget'];