Set blog id for site-themes.php AJAX requests.

git-svn-id: http://svn.automattic.com/wordpress/trunk@16556 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-11-23 22:27:05 +00:00
parent 719b8d8f4a
commit 8b60cbd2db
2 changed files with 4 additions and 1 deletions

View File

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

View File

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