Make sure we have a SimplePie object before calling destruct. Props scribu. see #11518
git-svn-id: http://svn.automattic.com/wordpress/trunk@12475 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5f20b65114
commit
07fd78ef79
|
@ -732,6 +732,8 @@ class WP_Widget_RSS extends WP_Widget {
|
|||
echo $before_title . $title . $after_title;
|
||||
wp_widget_rss_output( $rss, $instance );
|
||||
echo $after_widget;
|
||||
|
||||
if ( ! is_wp_error($rss) )
|
||||
$rss->__destruct();
|
||||
unset($rss);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue