WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/20/2009 10:30:09 AM (9 years ago)
Author:
azaozz
Message:

Always load the Dashboard RSS widgets with AJAX, see #10133 for trunk

File:
1 edited

Legend:

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

    r11604 r11613  
    606606
    607607function wp_dashboard_incoming_links() {
    608     wp_dashboard_cached_rss_widget( 'dashboard_incoming_links', 'wp_dashboard_incoming_links_output' );
     608    echo '<p class="widget-loading hide-if-no-js">' . __( 'Loading&#8230;' ) . '</p><p class="describe hide-if-js">' . __('This widget requires JavaScript.') . '</p>';
    609609}
    610610
     
    691691
    692692function wp_dashboard_primary() {
    693     wp_dashboard_cached_rss_widget( 'dashboard_primary', 'wp_dashboard_rss_output' );
     693    echo '<p class="widget-loading hide-if-no-js">' . __( 'Loading&#8230;' ) . '</p><p class="describe hide-if-js">' . __('This widget requires JavaScript.') . '</p>';
    694694}
    695695
     
    713713
    714714function wp_dashboard_secondary() {
    715     wp_dashboard_cached_rss_widget( 'dashboard_secondary', 'wp_dashboard_secondary_output' );
     715    echo '<p class="widget-loading hide-if-no-js">' . __( 'Loading&#8230;' ) . '</p><p class="describe hide-if-js">' . __('This widget requires JavaScript.') . '</p>';
    716716}
    717717
     
    748748
    749749function wp_dashboard_plugins() {
    750     wp_dashboard_cached_rss_widget( 'dashboard_plugins', 'wp_dashboard_plugins_output', array(
    751         'http://wordpress.org/extend/plugins/rss/browse/popular/',
    752         'http://wordpress.org/extend/plugins/rss/browse/new/',
    753         'http://wordpress.org/extend/plugins/rss/browse/updated/'
    754     ) );
     750    echo '<p class="widget-loading hide-if-no-js">' . __( 'Loading&#8230;' ) . '</p><p class="describe hide-if-js">' . __('This widget requires JavaScript.') . '</p>';
    755751}
    756752
Note: See TracChangeset for help on using the changeset viewer.