- Timestamp:
- 09/19/2012 12:43:31 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-ms-themes-list-table.php
r21755 r21914 13 13 var $is_site_themes; 14 14 15 function __construct( ) {15 function __construct( $args = array() ) { 16 16 global $status, $page; 17 18 parent::__construct( array( 19 'plural' => 'themes', 20 'screen' => isset( $args['screen'] ) ? $args['screen'] : null, 21 ) ); 17 22 18 23 $status = isset( $_REQUEST['theme_status'] ) ? $_REQUEST['theme_status'] : 'all'; … … 22 27 $page = $this->get_pagenum(); 23 28 24 $screen = get_current_screen(); 25 $this->is_site_themes = ( 'site-themes-network' == $screen->id ) ? true : false; 29 $this->is_site_themes = ( 'site-themes-network' == $this->screen->id ) ? true : false; 26 30 27 31 if ( $this->is_site_themes ) 28 32 $this->site_id = isset( $_REQUEST['id'] ) ? intval( $_REQUEST['id'] ) : 0; 29 30 parent::__construct( array(31 'plural' => 'themes'32 ) );33 33 } 34 34
Note: See TracChangeset
for help on using the changeset viewer.