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