mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Always load the Dashboard RSS widgets with AJAX, see #10133 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@11613 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -605,7 +605,7 @@ function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) {
|
||||
}
|
||||
|
||||
function wp_dashboard_incoming_links() {
|
||||
wp_dashboard_cached_rss_widget( 'dashboard_incoming_links', 'wp_dashboard_incoming_links_output' );
|
||||
echo '<p class="widget-loading hide-if-no-js">' . __( 'Loading…' ) . '</p><p class="describe hide-if-js">' . __('This widget requires JavaScript.') . '</p>';
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -690,7 +690,7 @@ function wp_dashboard_incoming_links_control() {
|
||||
}
|
||||
|
||||
function wp_dashboard_primary() {
|
||||
wp_dashboard_cached_rss_widget( 'dashboard_primary', 'wp_dashboard_rss_output' );
|
||||
echo '<p class="widget-loading hide-if-no-js">' . __( 'Loading…' ) . '</p><p class="describe hide-if-js">' . __('This widget requires JavaScript.') . '</p>';
|
||||
}
|
||||
|
||||
function wp_dashboard_primary_control() {
|
||||
@@ -712,7 +712,7 @@ function wp_dashboard_rss_output( $widget_id ) {
|
||||
}
|
||||
|
||||
function wp_dashboard_secondary() {
|
||||
wp_dashboard_cached_rss_widget( 'dashboard_secondary', 'wp_dashboard_secondary_output' );
|
||||
echo '<p class="widget-loading hide-if-no-js">' . __( 'Loading…' ) . '</p><p class="describe hide-if-js">' . __('This widget requires JavaScript.') . '</p>';
|
||||
}
|
||||
|
||||
function wp_dashboard_secondary_control() {
|
||||
@@ -747,11 +747,7 @@ function wp_dashboard_secondary_output() {
|
||||
}
|
||||
|
||||
function wp_dashboard_plugins() {
|
||||
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/'
|
||||
) );
|
||||
echo '<p class="widget-loading hide-if-no-js">' . __( 'Loading…' ) . '</p><p class="describe hide-if-js">' . __('This widget requires JavaScript.') . '</p>';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user