Make WordPress Core

Ticket #32576: 32576.7.diff

File 32576.7.diff, 1.6 KB (added by DrewAPicture, 10 years ago)

Rename WP_New_Menu_Customize_Control

  • src/wp-admin/js/customize-nav-menus.js

     
    22732273         * wp.customize.Menus.NewMenuControl
    22742274         *
    22752275         * 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.
    22772277         *
    22782278         * @constructor
    22792279         * @augments wp.customize.Control
  • src/wp-includes/class-wp-customize-control.php

     
    19451945 *
    19461946 * @see WP_Customize_Control
    19471947 */
    1948 class WP_New_Menu_Customize_Control extends WP_Customize_Control {
     1948class WP_Customize_New_Menu_Control extends WP_Customize_Control {
    19491949
    19501950        /**
    19511951         * Control type.
  • src/wp-includes/class-wp-customize-nav-menus.php

     
    575575                        'type' => 'new_menu',
    576576                ) );
    577577
    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(
    579579                        'section' => 'add_menu',
    580580                ) ) );
    581581        }