Fix typo. See #15336 props Utkarsh.
Also actually correctly cast to boolean :-) git-svn-id: https://develop.svn.wordpress.org/trunk@16234 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
163f1b0d9c
commit
de1c45771a
@ -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
Block a user