Changeset 32265 for trunk/src/wp-includes/class-wp-customize-manager.php
- Timestamp:
- 04/22/2015 04:15:01 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-manager.php
r32054 r32265 1199 1199 1200 1200 // Theme Controls. 1201 1202 // Add a control for the active/original theme. 1203 if ( ! $this->is_theme_active() ) { 1204 $themes = wp_prepare_themes_for_js( array( wp_get_theme( $this->original_stylesheet ) ) ); 1205 $active_theme = current( $themes ); 1206 $active_theme['isActiveTheme'] = true; 1207 $this->add_control( new WP_Customize_Theme_Control( $this, $active_theme['id'], array( 1208 'theme' => $active_theme, 1209 'section' => 'themes', 1210 'settings' => 'active_theme', 1211 ) ) ); 1212 } 1213 1201 1214 $themes = wp_prepare_themes_for_js(); 1202 1215 foreach ( $themes as $theme ) { 1203 if ( $theme['active'] ) {1216 if ( $theme['active'] || $theme['id'] === $this->original_stylesheet ) { 1204 1217 continue; 1205 1218 } 1206 1219 1207 1220 $theme_id = 'theme_' . $theme['id']; 1221 $theme['isActiveTheme'] = false; 1208 1222 $this->add_control( new WP_Customize_Theme_Control( $this, $theme_id, array( 1209 1223 'theme' => $theme,
Note: See TracChangeset
for help on using the changeset viewer.