Changes from branches/2.8/wp-admin/includes/dashboard.php at r11614 to trunk/wp-admin/includes/dashboard.php at r11450
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/dashboard.php
r11614 r11450 606 606 607 607 function wp_dashboard_incoming_links() { 608 echo '<p class="widget-loading hide-if-no-js">' . __( 'Loading…' ) . '</p><p class="describe hide-if-js">' . __('This widget requires JavaScript.') . '</p>';608 wp_dashboard_cached_rss_widget( 'dashboard_incoming_links', 'wp_dashboard_incoming_links_output' ); 609 609 } 610 610 … … 635 635 echo "<ul>\n"; 636 636 637 if ( !isset($items) ) 638 $items = 10; 639 640 foreach ( $rss->get_items(0, $items) as $item ) { 637 $count = 0; 638 foreach ( $rss->get_items() as $item ) { 641 639 $publisher = ''; 642 640 $site_link = ''; … … 647 645 648 646 $author = $item->get_author(); 649 if ( $author ) { 650 $site_link = esc_url( strip_tags( $author->get_link() ) ); 651 652 if ( !$publisher = esc_html( strip_tags( $author->get_name() ) ) ) 653 $publisher = __( 'Somebody' ); 654 } else { 655 $publisher = __( 'Somebody' ); 656 } 647 $site_link = esc_url( strip_tags( $author->get_link() ) ); 648 649 if ( !$publisher = esc_html( strip_tags( $author->get_name() ) ) ) 650 $publisher = __( 'Somebody' ); 657 651 if ( $site_link ) 658 652 $publisher = "<a href='$site_link'>$publisher</a>"; … … 691 685 692 686 function wp_dashboard_primary() { 693 echo '<p class="widget-loading hide-if-no-js">' . __( 'Loading…' ) . '</p><p class="describe hide-if-js">' . __('This widget requires JavaScript.') . '</p>';687 wp_dashboard_cached_rss_widget( 'dashboard_primary', 'wp_dashboard_rss_output' ); 694 688 } 695 689 … … 713 707 714 708 function wp_dashboard_secondary() { 715 echo '<p class="widget-loading hide-if-no-js">' . __( 'Loading…' ) . '</p><p class="describe hide-if-js">' . __('This widget requires JavaScript.') . '</p>';709 wp_dashboard_cached_rss_widget( 'dashboard_secondary', 'wp_dashboard_secondary_output' ); 716 710 } 717 711 … … 748 742 749 743 function wp_dashboard_plugins() { 750 echo '<p class="widget-loading hide-if-no-js">' . __( 'Loading…' ) . '</p><p class="describe hide-if-js">' . __('This widget requires JavaScript.') . '</p>'; 744 wp_dashboard_cached_rss_widget( 'dashboard_plugins', 'wp_dashboard_plugins_output', array( 745 'http://wordpress.org/extend/plugins/rss/browse/popular/', 746 'http://wordpress.org/extend/plugins/rss/browse/new/', 747 'http://wordpress.org/extend/plugins/rss/browse/updated/' 748 ) ); 751 749 } 752 750
Note: See TracChangeset
for help on using the changeset viewer.