Make WordPress Core

Changeset 28439


Ignore:
Timestamp:
05/15/2014 07:35:31 PM (9 years ago)
Author:
wonderboymusic
Message:

Eliminate use of extract() in WP_Widget_RSS::widget().

See #22400.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-widgets.php

    r28433 r28439  
    930930            return;
    931931
    932         extract($args, EXTR_SKIP);
    933 
    934932        $url = ! empty( $instance['url'] ) ? $instance['url'] : '';
    935933        while ( stristr($url, 'http') != $url )
     
    968966            $title = "<a class='rsswidget' href='$url' title='" . esc_attr__( 'Syndicate this content' ) ."'><img style='border:0' width='14' height='14' src='$icon' alt='RSS' /></a> <a class='rsswidget' href='$link' title='$desc'>$title</a>";
    969967
    970         echo $before_widget;
    971         if ( $title )
    972             echo $before_title . $title . $after_title;
     968        echo $args['before_widget'];
     969        if ( $title ) {
     970            echo $args['before_title'] . $title . $args['after_title'];
     971        }
    973972        wp_widget_rss_output( $rss, $instance );
    974         echo $after_widget;
     973        echo $args['after_widget'];
    975974
    976975        if ( ! is_wp_error($rss) )
Note: See TracChangeset for help on using the changeset viewer.