WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/12/2010 10:44:08 PM (9 years ago)
Author:
ryan
Message:

Set is_site_themes from current screen so the ajax request returns the proper rows for site-themes.php searches. see #14897

File:
1 edited

Legend:

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

    r16298 r16335  
    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
    2833        parent::WP_List_Table( array(
    2934            'plural' => 'plugins', // @todo replace with themes and add css
Note: See TracChangeset for help on using the changeset viewer.