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
This commit is contained in:
parent
b08df21c26
commit
a192c1e658
@ -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
|
||||
) );
|
||||
|
Loading…
Reference in New Issue
Block a user