Set blog id for site-themes.php AJAX requests.
git-svn-id: https://develop.svn.wordpress.org/trunk@16556 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4fd10f33f0
commit
0f2e7ef602
@ -30,6 +30,9 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
|
||||
$this->is_site_themes = ( 'site-themes-network' == $screen->id ) ? true : false;
|
||||
}
|
||||
|
||||
if ( $this->is_site_themes && ! isset( $this->site_id ) )
|
||||
$this->site_id = isset( $_REQUEST['id'] ) ? intval( $_REQUEST['id'] ) : 0;
|
||||
|
||||
parent::WP_List_Table( array(
|
||||
'plural' => 'plugins', // @todo replace with themes and add css
|
||||
) );
|
||||
|
@ -27,7 +27,7 @@ $id = isset( $_REQUEST['id'] ) ? intval( $_REQUEST['id'] ) : 0;
|
||||
|
||||
if ( ! $id )
|
||||
wp_die( __('Invalid site ID.') );
|
||||
|
||||
|
||||
$wp_list_table->site_id = $id;
|
||||
$wp_list_table->is_site_themes = true;
|
||||
$wp_list_table->prepare_items();
|
||||
|
Loading…
Reference in New Issue
Block a user