Make WordPress Core


Ignore:
Timestamp:
04/29/2011 06:54:03 AM (14 years ago)
Author:
nacin
Message:

Don't load dashboard widgets via XHR when the feed cache is hot. What a difference it makes, too. Reverts part of [11613], fixes #16927.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/dashboard.php

    r17748 r17764  
    764764
    765765function wp_dashboard_incoming_links() {
    766     echo '<p class="widget-loading hide-if-no-js">' . __( 'Loading&#8230;' ) . '</p><p class="describe hide-if-js">' . __('This widget requires JavaScript.') . '</p>';
     766    wp_dashboard_cached_rss_widget( 'dashboard_incoming_links', 'wp_dashboard_incoming_links_output' );
    767767}
    768768
     
    852852
    853853function wp_dashboard_primary() {
    854     echo '<p class="widget-loading hide-if-no-js">' . __( 'Loading&#8230;' ) . '</p><p class="describe hide-if-js">' . __('This widget requires JavaScript.') . '</p>';
     854    wp_dashboard_cached_rss_widget( 'dashboard_primary', 'wp_dashboard_rss_output' );
    855855}
    856856
     
    874874
    875875function wp_dashboard_secondary() {
    876     echo '<p class="widget-loading hide-if-no-js">' . __( 'Loading&#8230;' ) . '</p><p class="describe hide-if-js">' . __('This widget requires JavaScript.') . '</p>';
     876    wp_dashboard_cached_rss_widget( 'dashboard_secondary', 'wp_dashboard_secondary_output' );
    877877}
    878878
     
    913913
    914914function wp_dashboard_plugins() {
    915     echo '<p class="widget-loading hide-if-no-js">' . __( 'Loading&#8230;' ) . '</p><p class="describe hide-if-js">' . __('This widget requires JavaScript.') . '</p>';
     915    wp_dashboard_cached_rss_widget( 'dashboard_plugins', 'wp_dashboard_plugins_output', array(
     916        'http://wordpress.org/extend/plugins/rss/browse/popular/',
     917        'http://wordpress.org/extend/plugins/rss/browse/new/',
     918        'http://wordpress.org/extend/plugins/rss/browse/updated/'
     919    ) );
    916920}
    917921
Note: See TracChangeset for help on using the changeset viewer.