Ticket #32576: 32576.7.diff
File 32576.7.diff, 1.6 KB (added by , 10 years ago) |
---|
-
src/wp-admin/js/customize-nav-menus.js
2273 2273 * wp.customize.Menus.NewMenuControl 2274 2274 * 2275 2275 * Customizer control for creating new menus and handling deletion of existing menus. 2276 * Note that 'new_menu' must match the WP_ New_Menu_Customize_Control::$type.2276 * Note that 'new_menu' must match the WP_Customize_New_Menu_Control::$type. 2277 2277 * 2278 2278 * @constructor 2279 2279 * @augments wp.customize.Control -
src/wp-includes/class-wp-customize-control.php
1945 1945 * 1946 1946 * @see WP_Customize_Control 1947 1947 */ 1948 class WP_ New_Menu_Customize_Control extends WP_Customize_Control {1948 class WP_Customize_New_Menu_Control extends WP_Customize_Control { 1949 1949 1950 1950 /** 1951 1951 * Control type. -
src/wp-includes/class-wp-customize-nav-menus.php
575 575 'type' => 'new_menu', 576 576 ) ); 577 577 578 $this->manager->add_control( new WP_ New_Menu_Customize_Control( $this->manager, 'create_new_menu', array(578 $this->manager->add_control( new WP_Customize_New_Menu_Control( $this->manager, 'create_new_menu', array( 579 579 'section' => 'add_menu', 580 580 ) ) ); 581 581 }