diff --git src/wp-includes/class-wp-customize-nav-menus.php src/wp-includes/class-wp-customize-nav-menus.php
index d178de3e24..9540f65836 100644
|
|
final class WP_Customize_Nav_Menus { |
49 | 49 | add_action( 'customize_register', array( $this, 'customize_register' ), 11 ); |
50 | 50 | add_filter( 'customize_dynamic_setting_args', array( $this, 'filter_dynamic_setting_args' ), 10, 2 ); |
51 | 51 | add_filter( 'customize_dynamic_setting_class', array( $this, 'filter_dynamic_setting_class' ), 10, 3 ); |
| 52 | add_action( 'customize_save_nav_menus_created_posts', array( $this, 'save_nav_menus_created_posts' ) ); |
52 | 53 | |
53 | 54 | // Skip remaining hooks when the user can't manage nav menus anyway. |
54 | 55 | if ( ! current_user_can( 'edit_theme_options' ) ) { |
… |
… |
final class WP_Customize_Nav_Menus { |
64 | 65 | add_action( 'customize_controls_print_footer_scripts', array( $this, 'available_items_template' ) ); |
65 | 66 | add_action( 'customize_preview_init', array( $this, 'customize_preview_init' ) ); |
66 | 67 | add_action( 'customize_preview_init', array( $this, 'make_auto_draft_status_previewable' ) ); |
67 | | add_action( 'customize_save_nav_menus_created_posts', array( $this, 'save_nav_menus_created_posts' ) ); |
68 | 68 | |
69 | 69 | // Selective Refresh partials. |
70 | 70 | add_filter( 'customize_dynamic_partial_args', array( $this, 'customize_dynamic_partial_args' ), 10, 2 ); |