Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r12209 r11794  
    733733        wp_widget_rss_output( $rss, $instance );
    734734        echo $after_widget;
    735         $rss->__destruct();
    736         unset($rss);
    737735    }
    738736
     
    773771        if ( is_admin() || current_user_can('manage_options') )
    774772            echo '<p>' . sprintf( __('<strong>RSS Error</strong>: %s'), $rss->get_error_message() ) . '</p>';
     773
    775774        return;
    776775    }
     
    789788    if ( !$rss->get_item_quantity() ) {
    790789        echo '<ul><li>' . __( 'An error has occurred; the feed is probably down. Try again later.' ) . '</li></ul>';
    791         $rss->__destruct();
    792         unset($rss);
    793790        return;
    794791    }
     
    842839    }
    843840    echo '</ul>';
    844     $rss->__destruct();
    845     unset($rss);
    846841}
    847842
     
    952947            while ( stristr($link, 'http') != $link )
    953948                $link = substr($link, 1);
    954 
    955             $rss->__destruct();
    956             unset($rss);
    957949        }
    958950    }
Note: See TracChangeset for help on using the changeset viewer.