From 80adf4829fc18ca95c44a4c47bb03ceedee702f5 Mon Sep 17 00:00:00 2001 From: westi Date: Mon, 8 Nov 2010 08:16:28 +0000 Subject: [PATCH] Ensure that booleans are booleans for now. See #15336. git-svn-id: http://svn.automattic.com/wordpress/trunk@16231 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin-ajax.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wp-admin/admin-ajax.php b/wp-admin/admin-ajax.php index 38f7dd97d7..ab77e76743 100644 --- a/wp-admin/admin-ajax.php +++ b/wp-admin/admin-ajax.php @@ -53,6 +53,10 @@ switch ( $action = $_GET['action'] ) : case 'fetch-list' : $current_screen = (object) $_GET['list_args']['screen']; + //TODO fix this in a better way see #15336 + $curent_screen['is_network'] = (bool) $curent_screen['is_network']; + $curent_screen['is_user'] = (bool) $curent_screen['is_user']; + $wp_list_table = get_list_table( $_GET['list_args']['class'] ); if ( ! $wp_list_table ) die( '0' );