Changeset 41995 for trunk/src/wp-includes/theme.php
- Timestamp:
- 10/24/2017 06:34:21 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/theme.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme.php
r41937 r41995 695 695 696 696 $nav_menu_locations = get_theme_mod( 'nav_menu_locations' ); 697 add_option( 'theme_switch_menu_locations', $nav_menu_locations );697 update_option( 'theme_switch_menu_locations', $nav_menu_locations ); 698 698 699 699 if ( func_num_args() > 1 ) { … … 2725 2725 $old_theme = wp_get_theme( $stylesheet ); 2726 2726 2727 // Prevent retrieve_widgets()from running since Customizer already called it up front2727 // Prevent widget & menu mapping from running since Customizer already called it up front 2728 2728 if ( get_option( 'theme_switched_via_customizer' ) ) { 2729 remove_action( 'after_switch_theme', '_wp_menus_changed' ); 2729 2730 remove_action( 'after_switch_theme', '_wp_sidebars_changed' ); 2730 2731 update_option( 'theme_switched_via_customizer', false );
Note: See TracChangeset
for help on using the changeset viewer.