mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Remove index-extra.php. Move dashboard widget XHR callbacks to ajax-actions.php. fixes #20242.
git-svn-id: https://develop.svn.wordpress.org/trunk@20190 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -186,6 +186,26 @@ function wp_ajax_autocomplete_user() {
|
||||
wp_die( json_encode( $return ) );
|
||||
}
|
||||
|
||||
function wp_ajax_dashboard_widgets() {
|
||||
require ABSPATH . 'wp-admin/includes/dashboard.php';
|
||||
|
||||
switch ( $_GET['widget'] ) {
|
||||
case 'dashboard_incoming_links' :
|
||||
wp_dashboard_incoming_links();
|
||||
break;
|
||||
case 'dashboard_primary' :
|
||||
wp_dashboard_primary();
|
||||
break;
|
||||
case 'dashboard_secondary' :
|
||||
wp_dashboard_secondary();
|
||||
break;
|
||||
case 'dashboard_plugins' :
|
||||
wp_dashboard_plugins();
|
||||
break;
|
||||
}
|
||||
wp_die();
|
||||
}
|
||||
|
||||
/*
|
||||
* Ajax helper.
|
||||
*/
|
||||
|
||||
@@ -327,6 +327,9 @@ $_old_files = array(
|
||||
'wp-includes/js/tinymce/themes/advanced/skins/wp_theme/img/separator.gif',
|
||||
// 3.4
|
||||
'wp-admin/images/logo-login.png',
|
||||
'wp-admin/index-extra.php',
|
||||
'wp-admin/network/index-extra.php',
|
||||
'wp-admin/user/index-extra.php',
|
||||
);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user