WordPress.org

Make WordPress Core

Ticket #11518: 11168.2.diff

File 11168.2.diff, 448 bytes (added by westi, 4 years ago)

Patch to fix the issue from scribu originally attached to #11168

  • 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