WordPress.org

Make WordPress Core

Changeset 16556


Ignore:
Timestamp:
11/23/10 22:27:05 (5 years ago)
Author:
ryan
Message:

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

Location:
trunk/wp-admin
Files:
2 edited

Legend:

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

    r16438 r16556  
    3030            $this->is_site_themes = ( 'site-themes-network' == $screen->id ) ? true : false; 
    3131        } 
     32 
     33        if ( $this->is_site_themes && ! isset( $this->site_id ) ) 
     34            $this->site_id = isset( $_REQUEST['id'] ) ? intval( $_REQUEST['id'] ) : 0; 
    3235 
    3336        parent::WP_List_Table( array( 
  • trunk/wp-admin/network/site-themes.php

    r16298 r16556  
    2828if ( ! $id ) 
    2929    wp_die( __('Invalid site ID.') ); 
    30      
     30 
    3131$wp_list_table->site_id = $id; 
    3232$wp_list_table->is_site_themes = true; 
Note: See TracChangeset for help on using the changeset viewer.