From 8b562f1fb97c24e7db342cb69259d5082e454875 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 12 Nov 2010 22:44:08 +0000 Subject: [PATCH] Set is_site_themes from current screen so the ajax request returns the proper rows for site-themes.php searches. see #14897 git-svn-id: http://svn.automattic.com/wordpress/trunk@16335 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-ms-themes-list-table.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wp-admin/includes/class-wp-ms-themes-list-table.php b/wp-admin/includes/class-wp-ms-themes-list-table.php index 637041e280..a6ddfdaa8d 100644 --- a/wp-admin/includes/class-wp-ms-themes-list-table.php +++ b/wp-admin/includes/class-wp-ms-themes-list-table.php @@ -25,6 +25,11 @@ class WP_MS_Themes_List_Table extends WP_List_Table { $page = $this->get_pagenum(); + if ( !isset($this->is_site_themes) ) { + $screen = get_current_screen(); + $this->is_site_themes = ( 'site-themes-network' == $screen->id ) ? true : false; + } + parent::WP_List_Table( array( 'plural' => 'plugins', // @todo replace with themes and add css ) );