Changeset 12209
- Timestamp:
- 11/18/2009 09:52:38 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/dashboard.php
r12193 r12209 625 625 echo '</p>'; 626 626 } 627 $rss->__destruct();628 unset($rss);629 627 return; 630 628 } … … 743 741 echo '</p></div>'; 744 742 } 745 $rss->__destruct();746 unset($rss);747 743 } elseif ( !$rss->get_item_quantity() ) { 748 744 $rss->__destruct(); … … 933 929 if ( !$widget_options[$widget_id]['title'] && isset($_POST['widget-rss'][$number]['title']) ) { 934 930 $rss = fetch_feed($widget_options[$widget_id]['url']); 935 if ( ! is_wp_error($rss) ) 936 $widget_options[$widget_id]['title'] = htmlentities(strip_tags($rss->get_title())); 937 else 931 if ( is_wp_error($rss) ) { 938 932 $widget_options[$widget_id]['title'] = htmlentities(__('Unknown Feed')); 939 $rss->__destruct(); 940 unset($rss); 933 } else { 934 $widget_options[$widget_id]['title'] = htmlentities(strip_tags($rss->get_title())); 935 $rss->__destruct(); 936 unset($rss); 937 } 941 938 } 942 939 update_option( 'dashboard_widget_options', $widget_options ); -
trunk/wp-includes/default-widgets.php
r12193 r12209 773 773 if ( is_admin() || current_user_can('manage_options') ) 774 774 echo '<p>' . sprintf( __('<strong>RSS Error</strong>: %s'), $rss->get_error_message() ) . '</p>'; 775 $rss->__destruct();776 unset($rss);777 775 return; 778 776 } … … 954 952 while ( stristr($link, 'http') != $link ) 955 953 $link = substr($link, 1); 956 } 957 $rss->__destruct(); 958 unset($rss); 954 955 $rss->__destruct(); 956 unset($rss); 957 } 959 958 } 960 959
Note: See TracChangeset
for help on using the changeset viewer.