From 90928c02510b53eac8923b7efaa9c15d408c2dfe Mon Sep 17 00:00:00 2001 From: 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: http://svn.automattic.com/wordpress/trunk@17764 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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/' + ) ); } /**