From a9c3fe4136247f90d0576dfbbd5259417e2bc152 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 29 Apr 2011 06:54:03 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@17764 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/dashboard.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index 79e770682c..2a96ceadc1 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -763,7 +763,7 @@ function wp_dashboard_recent_comments_control() { } function wp_dashboard_incoming_links() { - echo '

' . __( 'Loading…' ) . '

' . __('This widget requires JavaScript.') . '

'; + wp_dashboard_cached_rss_widget( 'dashboard_incoming_links', 'wp_dashboard_incoming_links_output' ); } /** @@ -851,7 +851,7 @@ function wp_dashboard_incoming_links_control() { } function wp_dashboard_primary() { - echo '

' . __( 'Loading…' ) . '

' . __('This widget requires JavaScript.') . '

'; + wp_dashboard_cached_rss_widget( 'dashboard_primary', 'wp_dashboard_rss_output' ); } function wp_dashboard_primary_control() { @@ -873,7 +873,7 @@ function wp_dashboard_rss_output( $widget_id ) { } function wp_dashboard_secondary() { - echo '

' . __( 'Loading…' ) . '

' . __('This widget requires JavaScript.') . '

'; + wp_dashboard_cached_rss_widget( 'dashboard_secondary', 'wp_dashboard_secondary_output' ); } function wp_dashboard_secondary_control() { @@ -912,7 +912,11 @@ function wp_dashboard_secondary_output() { } function wp_dashboard_plugins() { - echo '

' . __( 'Loading…' ) . '

' . __('This widget requires JavaScript.') . '

'; + wp_dashboard_cached_rss_widget( 'dashboard_plugins', 'wp_dashboard_plugins_output', array( + 'http://wordpress.org/extend/plugins/rss/browse/popular/', + 'http://wordpress.org/extend/plugins/rss/browse/new/', + 'http://wordpress.org/extend/plugins/rss/browse/updated/' + ) ); } /**