Changeset 41237 for trunk/src/wp-includes/theme.php
- Timestamp:
- 08/09/2017 09:03:16 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme.php
r41219 r41237 692 692 693 693 $nav_menu_locations = get_theme_mod( 'nav_menu_locations' ); 694 add_option( 'theme_switch_menu_locations', $nav_menu_locations ); 694 695 695 696 if ( func_num_args() > 1 ) { … … 731 732 if ( 'wp_ajax_customize_save' === current_action() ) { 732 733 remove_theme_mod( 'sidebars_widgets' ); 733 }734 735 if ( ! empty( $nav_menu_locations ) ) {736 $nav_mods = get_theme_mod( 'nav_menu_locations' );737 if ( empty( $nav_mods ) ) {738 set_theme_mod( 'nav_menu_locations', $nav_menu_locations );739 }740 734 } 741 735 }
Note: See TracChangeset
for help on using the changeset viewer.