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

See #22400.

Built from https://develop.svn.wordpress.org/trunk@28439


git-svn-id: http://core.svn.wordpress.org/trunk@28266 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2014-05-15 19:36:15 +00:00
parent 72fd658cde
commit 157f811a5e
1 changed files with 5 additions and 6 deletions

View File

@ -929,8 +929,6 @@ class WP_Widget_RSS extends WP_Widget {
if ( isset($instance['error']) && $instance['error'] )
return;
extract($args, EXTR_SKIP);
$url = ! empty( $instance['url'] ) ? $instance['url'] : '';
while ( stristr($url, 'http') != $url )
$url = substr($url, 1);
@ -967,11 +965,12 @@ class WP_Widget_RSS extends WP_Widget {
if ( $title )
$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>";
echo $before_widget;
if ( $title )
echo $before_title . $title . $after_title;
echo $args['before_widget'];
if ( $title ) {
echo $args['before_title'] . $title . $args['after_title'];
}
wp_widget_rss_output( $rss, $instance );
echo $after_widget;
echo $args['after_widget'];
if ( ! is_wp_error($rss) )
$rss->__destruct();