- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/default-widgets.php
r12209 r11794 733 733 wp_widget_rss_output( $rss, $instance ); 734 734 echo $after_widget; 735 $rss->__destruct();736 unset($rss);737 735 } 738 736 … … 773 771 if ( is_admin() || current_user_can('manage_options') ) 774 772 echo '<p>' . sprintf( __('<strong>RSS Error</strong>: %s'), $rss->get_error_message() ) . '</p>'; 773 775 774 return; 776 775 } … … 789 788 if ( !$rss->get_item_quantity() ) { 790 789 echo '<ul><li>' . __( 'An error has occurred; the feed is probably down. Try again later.' ) . '</li></ul>'; 791 $rss->__destruct();792 unset($rss);793 790 return; 794 791 } … … 842 839 } 843 840 echo '</ul>'; 844 $rss->__destruct();845 unset($rss);846 841 } 847 842 … … 952 947 while ( stristr($link, 'http') != $link ) 953 948 $link = substr($link, 1); 954 955 $rss->__destruct();956 unset($rss);957 949 } 958 950 }
Note: See TracChangeset
for help on using the changeset viewer.