Changeset 12209 for trunk/wp-admin/includes/dashboard.php
- Timestamp:
- 11/18/2009 09:52:38 PM (15 years ago)
- File:
-
- 1 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 );
Note: See TracChangeset
for help on using the changeset viewer.