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
This commit is contained in:
parent
c75430c485
commit
0030431a66
|
@ -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' );
|
||||
|
|
Loading…
Reference in New Issue