From 0030431a66ec942191e52970ff9799bc63ba2751 Mon Sep 17 00:00:00 2001 From: scribu Date: Sun, 31 Oct 2010 13:52:35 +0000 Subject: [PATCH] Set $current_screen before creating list table. Props rovo89. See #14579 git-svn-id: https://develop.svn.wordpress.org/trunk@16118 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/admin-ajax.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/admin-ajax.php b/wp-admin/admin-ajax.php index a055fb24dc..5e3e7cb4be 100644 --- a/wp-admin/admin-ajax.php +++ b/wp-admin/admin-ajax.php @@ -52,11 +52,11 @@ if ( isset( $_GET['action'] ) ) : switch ( $action = $_GET['action'] ) : case 'fetch-list' : + $current_screen = (object) $_GET['list_args']['screen']; $wp_list_table = get_list_table( $_GET['list_args']['class'] ); if ( ! $wp_list_table ) die( '0' ); - $current_screen = (object) $_GET['list_args']['screen']; $wp_list_table->ajax_response(); die( '0' );