mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
require_once dashboard.php in wp_ajax_dashboard_widgets() so it is testable. props kurtpayne. fixes #UT41.
git-svn-id: http://core.svn.wordpress.org/trunk@21203 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
261817a0c4
commit
4b82f5c42d
@ -193,7 +193,7 @@ function wp_ajax_autocomplete_user() {
|
||||
}
|
||||
|
||||
function wp_ajax_dashboard_widgets() {
|
||||
require ABSPATH . 'wp-admin/includes/dashboard.php';
|
||||
require_once ABSPATH . 'wp-admin/includes/dashboard.php';
|
||||
|
||||
switch ( $_GET['widget'] ) {
|
||||
case 'dashboard_incoming_links' :
|
||||
|
Loading…
Reference in New Issue
Block a user