WordPress.org

Make WordPress Core

Ticket #14897: 14897.17.diff

File 14897.17.diff, 1.2 KB (added by PeteMall, 9 years ago)

Cleanup.

  • wp-admin/includes/class-wp-ms-themes-list-table.php

     
    2525
    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                 }
     28                $screen = get_current_screen();
     29                $this->is_site_themes = ( 'site-themes-network' == $screen->id ) ? true : false;
    3230
    33                 if ( $this->is_site_themes && ! isset( $this->site_id ) )
     31                if ( $this->is_site_themes )
    3432                        $this->site_id = isset( $_REQUEST['id'] ) ? intval( $_REQUEST['id'] ) : 0;
    3533
    3634                parent::WP_List_Table( array(
  • wp-admin/network/site-themes.php

     
    2828if ( ! $id )
    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
    3533$details = get_blog_details( $id );