Changeset 12193
- Timestamp:
- 11/16/2009 10:42:58 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/dashboard.php
r12162 r12193 625 625 echo '</p>'; 626 626 } 627 $rss->__destruct(); 628 unset($rss); 627 629 return; 628 630 } … … 630 632 if ( !$rss->get_item_quantity() ) { 631 633 echo '<p>' . __('This dashboard widget queries <a href="http://blogsearch.google.com/">Google Blog Search</a> so that when another blog links to your site it will show up here. It has found no incoming links… yet. It’s okay — there is no rush.') . "</p>\n"; 634 $rss->__destruct(); 635 unset($rss); 632 636 return; 633 637 } … … 683 687 684 688 echo "</ul>\n"; 685 689 $rss->__destruct(); 690 unset($rss); 686 691 } 687 692 … … 738 743 echo '</p></div>'; 739 744 } 745 $rss->__destruct(); 746 unset($rss); 740 747 } elseif ( !$rss->get_item_quantity() ) { 748 $rss->__destruct(); 749 unset($rss); 741 750 return false; 742 751 } else { … … 744 753 wp_widget_rss_output( $rss, $widgets['dashboard_secondary'] ); 745 754 echo '</div>'; 755 $rss->__destruct(); 756 unset($rss); 746 757 } 747 758 } … … 826 837 echo "<h5><a href='$link'>$title</a></h5> <span>(<a href='$ilink' class='thickbox' title='$title'>" . __( 'Install' ) . "</a>)</span>\n"; 827 838 echo "<p>$description</p>\n"; 839 840 $$feed->__destruct(); 841 unset($$feed); 828 842 } 829 843 } … … 923 937 else 924 938 $widget_options[$widget_id]['title'] = htmlentities(__('Unknown Feed')); 939 $rss->__destruct(); 940 unset($rss); 925 941 } 926 942 update_option( 'dashboard_widget_options', $widget_options ); -
trunk/wp-includes/default-widgets.php
r11794 r12193 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 775 $rss->__destruct(); 776 unset($rss); 774 777 return; 775 778 } … … 788 791 if ( !$rss->get_item_quantity() ) { 789 792 echo '<ul><li>' . __( 'An error has occurred; the feed is probably down. Try again later.' ) . '</li></ul>'; 793 $rss->__destruct(); 794 unset($rss); 790 795 return; 791 796 } … … 839 844 } 840 845 echo '</ul>'; 846 $rss->__destruct(); 847 unset($rss); 841 848 } 842 849 … … 948 955 $link = substr($link, 1); 949 956 } 957 $rss->__destruct(); 958 unset($rss); 950 959 } 951 960
Note: See TracChangeset
for help on using the changeset viewer.