Site Themes cleanup. See #14897.

git-svn-id: http://svn.automattic.com/wordpress/trunk@16559 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
PeteMall 2010-11-24 00:27:54 +00:00
parent 86c173262f
commit 5c803c9b28
2 changed files with 3 additions and 7 deletions

View File

@ -25,12 +25,10 @@ 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;
}
$screen = get_current_screen();
$this->is_site_themes = ( 'site-themes-network' == $screen->id ) ? true : false;
if ( $this->is_site_themes && ! isset( $this->site_id ) )
if ( $this->is_site_themes )
$this->site_id = isset( $_REQUEST['id'] ) ? intval( $_REQUEST['id'] ) : 0;
parent::WP_List_Table( array(

View File

@ -28,8 +28,6 @@ $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();
$details = get_blog_details( $id );