Changeset 52371 for trunk/src/wp-includes/class-wp-customize-manager.php
- Timestamp:
- 12/14/2021 03:31:14 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-manager.php
r52352 r52371 5809 5809 5810 5810 // Load all installed themes from wp_prepare_themes_for_js(). 5811 $themes = array( 'themes' => wp_prepare_themes_for_js() ); 5812 foreach ( $themes['themes'] as &$theme ) { 5813 $theme['type'] = 'installed'; 5814 $theme['active'] = ( isset( $_POST['customized_theme'] ) && $_POST['customized_theme'] === $theme['id'] ); 5811 $themes = array( 'themes' => array() ); 5812 foreach ( wp_prepare_themes_for_js() as $theme ) { 5813 $theme['type'] = 'installed'; 5814 $theme['active'] = ( isset( $_POST['customized_theme'] ) && $_POST['customized_theme'] === $theme['id'] ); 5815 $themes['themes'][] = $theme; 5815 5816 } 5816 5817 } elseif ( 'wporg' === $theme_action ) {
Note: See TracChangeset
for help on using the changeset viewer.