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
This commit is contained in:
ryan 2010-11-12 22:44:08 +00:00
parent 435c4c2dbf
commit 8b562f1fb9
1 changed files with 5 additions and 0 deletions

View File

@ -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
) );