mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-09 09:57:38 +01:00
Set $current_screen before creating list table. Props rovo89. See #14579
git-svn-id: http://svn.automattic.com/wordpress/trunk@16118 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
89e0ee3047
commit
82305ba20a
@ -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
Block a user