Make WordPress Core


Ignore:
Timestamp:
12/21/2009 11:36:12 PM (14 years ago)
Author:
ryan
Message:

Make sure we have a SimplePie object before calling destruct. Props scribu. see #11518

File:
1 edited

Legend:

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

    r12364 r12475  
    733733        wp_widget_rss_output( $rss, $instance );
    734734        echo $after_widget;
    735         $rss->__destruct();
     735
     736        if ( ! is_wp_error($rss) )
     737            $rss->__destruct();
    736738        unset($rss);
    737739    }
Note: See TracChangeset for help on using the changeset viewer.