Make sure we have a SimplePie object before calling destruct. Props scribu. see #11518
git-svn-id: https://develop.svn.wordpress.org/trunk@12475 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f0c5fb4f15
commit
7d45163e3e
@ -732,7 +732,9 @@ class WP_Widget_RSS extends WP_Widget {
|
||||
echo $before_title . $title . $after_title;
|
||||
wp_widget_rss_output( $rss, $instance );
|
||||
echo $after_widget;
|
||||
$rss->__destruct();
|
||||
|
||||
if ( ! is_wp_error($rss) )
|
||||
$rss->__destruct();
|
||||
unset($rss);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user