WordPress.org

Make WordPress Core

Ticket #22010: prateek.patch

File prateek.patch, 597 bytes (added by prateek312, 6 years ago)
  • .php

    old new  
    969969                $url = esc_url(strip_tags($url));
    970970                $icon = includes_url('images/rss.png');
    971971                if ( $title )
    972                         $title = "<a class='rsswidget' href='$url'><img style='border:14' width='14' height='14' src='$icon' alt='RSS' /></a> <a class='rsswidget' href='$link' $title='$desc'></a>";
     972                        $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? __( 'RSS' ) : $instance['title'], $instance, $this->id_base );
    973973
    974974                echo $args['before_widget'];
    975975                if ( $title ) {