WordPress.org

Make WordPress Core

Changeset 16559


Ignore:
Timestamp:
11/24/2010 12:27:54 AM (9 years ago)
Author:
PeteMall
Message:

Site Themes cleanup. See #14897.

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-ms-themes-list-table.php

    r16556 r16559  
    2626        $page = $this->get_pagenum();
    2727
    28         if ( !isset($this->is_site_themes) ) {
    29             $screen = get_current_screen();
    30             $this->is_site_themes = ( 'site-themes-network' == $screen->id ) ? true : false;
    31         }
    32 
    33         if ( $this->is_site_themes && ! isset( $this->site_id ) )
     28        $screen = get_current_screen();
     29        $this->is_site_themes = ( 'site-themes-network' == $screen->id ) ? true : false;
     30
     31        if ( $this->is_site_themes )
    3432            $this->site_id = isset( $_REQUEST['id'] ) ? intval( $_REQUEST['id'] ) : 0;
    3533
  • trunk/wp-admin/network/site-themes.php

    r16556 r16559  
    2929    wp_die( __('Invalid site ID.') );
    3030
    31 $wp_list_table->site_id = $id;
    32 $wp_list_table->is_site_themes = true;
    3331$wp_list_table->prepare_items();
    3432
Note: See TracChangeset for help on using the changeset viewer.