mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 18:13:00 +01:00
require_once dashboard.php in wp_ajax_dashboard_widgets() so it is testable. props kurtpayne. fixes #UT41.
git-svn-id: https://develop.svn.wordpress.org/trunk@21203 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
178c404146
commit
260e9ec7ab
@ -193,7 +193,7 @@ function wp_ajax_autocomplete_user() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function wp_ajax_dashboard_widgets() {
|
function wp_ajax_dashboard_widgets() {
|
||||||
require ABSPATH . 'wp-admin/includes/dashboard.php';
|
require_once ABSPATH . 'wp-admin/includes/dashboard.php';
|
||||||
|
|
||||||
switch ( $_GET['widget'] ) {
|
switch ( $_GET['widget'] ) {
|
||||||
case 'dashboard_incoming_links' :
|
case 'dashboard_incoming_links' :
|
||||||
|
Loading…
x
Reference in New Issue
Block a user