Changeset 31975 for trunk/src/wp-includes/class-wp-customize-manager.php
- Timestamp:
- 04/01/2015 10:50:10 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-manager.php
r31968 r31975 1149 1149 1150 1150 $this->add_section( new WP_Customize_Themes_Section( $this, 'themes', array( 1151 'title' => sprintf( __( 'Theme: %s' ), $this->theme()->display('Name')),1151 'title' => $this->theme()->display( 'Name' ), 1152 1152 'capability' => 'switch_themes', 1153 'priority' => 0,1153 'priority' => 0, 1154 1154 ) ) ); 1155 1155 … … 1164 1164 $themes = wp_prepare_themes_for_js(); 1165 1165 foreach ( $themes as $theme ) { 1166 if ( $theme['active'] ) { 1167 continue; 1168 } 1169 1166 1170 $theme_id = 'theme_' . $theme['id']; 1167 1171 $this->add_control( new WP_Customize_Theme_Control( $this, $theme_id, array( 1168 'theme' => $theme,1169 'section' => 'themes',1172 'theme' => $theme, 1173 'section' => 'themes', 1170 1174 'settings' => 'active_theme', 1171 1175 ) ) );
Note: See TracChangeset
for help on using the changeset viewer.