Changeset 10697 for trunk/wp-admin/includes/dashboard.php
- Timestamp:
- 03/04/2009 07:24:48 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/dashboard.php
r10688 r10697 699 699 $rss = @fetch_feed( $url ); 700 700 701 if ( !$rss->get_item_quantity() ) 701 if ( is_wp_error($rss) ) { 702 if ( is_admin() || current_user_can('manage_options') ) { 703 echo '<div class="rss-widget"><p>'; 704 printf(__('<strong>RSS Error</strong>: %s'), $rss->get_error_message()); 705 echo '</p></div>'; 706 } 707 } elseif ( !$rss->get_item_quantity() ) { 702 708 return false; 703 704 echo "<div class='rss-widget'>"; 705 wp_widget_rss_output( $rss, $widgets['dashboard_secondary'] ); 706 echo "</div>"; 709 } else { 710 echo '<div class="rss-widget">'; 711 wp_widget_rss_output( $rss, $widgets['dashboard_secondary'] ); 712 echo '</div>'; 713 } 707 714 } 708 715
Note: See TracChangeset
for help on using the changeset viewer.