Fix typo. See #15336 props Utkarsh.
Also actually correctly cast to boolean :-) git-svn-id: http://svn.automattic.com/wordpress/trunk@16234 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c95930fa12
commit
2cd45b9938
|
@ -54,9 +54,9 @@ case 'fetch-list' :
|
|||
|
||||
$current_screen = (object) $_GET['list_args']['screen'];
|
||||
//TODO fix this in a better way see #15336
|
||||
$current_screen['is_network'] = (bool) $current_screen['is_network'];
|
||||
$current_screen['is_user'] = (bool) $current_screen['is_user'];
|
||||
|
||||
$current_screen->is_network = 'false' === $current_screen->is_network ? false : true;
|
||||
$current_screen->is_user = 'false' === $current_screen->is_user ? false : true;
|
||||
|
||||
$wp_list_table = get_list_table( $_GET['list_args']['class'] );
|
||||
if ( ! $wp_list_table )
|
||||
die( '0' );
|
||||
|
|
Loading…
Reference in New Issue