WordPress.org

Make WordPress Core

Ticket #11168: 11168.2.diff

File 11168.2.diff, 448 bytes (added by scribu, 4 years ago)
  • wp-includes/default-widgets.php

     
    732732                        echo $before_title . $title . $after_title; 
    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        } 
    738740