From a192c1e658460431bf95ecff58c1116a67f29c29 Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@16335 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 ) );