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:
nacin 2012-06-30 15:07:39 +00:00
parent 261817a0c4
commit 4b82f5c42d

View File

@ -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' :