WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/28/2017 05:47:06 AM (2 years ago)
Author:
westonruter
Message:

Customize: Deprecate nav menu classes that are no longer used, instead of removing them immediately.

  • Deprecate PHP classes WP_Customize_New_Menu_Section and WP_Customize_New_Menu_Control.
  • Deprecate JS class wp.customize.Menus.NewMenuControl.
  • Also introduce wp.customize.Menus.createNavMenu() for logic to create nav menus separately from the logic for handling UI interactions.

Amends [41768].
See #40104, #42364.
Fixes #42357.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/customize/class-wp-customize-new-menu-control.php

    r41162 r42034  
    66 * @subpackage Customize
    77 * @since 4.4.0
     8 * @deprecated 4.9.0 This file is no longer used as of the menu creation UX introduced in #40104.
    89 */
    910
     
    1213 *
    1314 * @since 4.3.0
     15 * @deprecated 4.9.0 This class is no longer used as of the menu creation UX introduced in #40104.
    1416 *
    1517 * @see WP_Customize_Control
     
    2628
    2729    /**
     30     * Constructor.
     31     *
     32     * @since 4.9.0
     33     *
     34     * @param WP_Customize_Manager $manager Manager.
     35     * @param string               $id      ID.
     36     * @param array                $args    Args.
     37     */
     38    public function __construct( WP_Customize_Manager $manager, $id, array $args = array() ) {
     39        _deprecated_file( basename( __FILE__ ), '4.9.0' ); // @todo Move this outside of class in 5.0, and remove its require_once() from class-wp-customize-control.php. See #42364.
     40        parent::__construct( $manager, $id, $args );
     41    }
     42
     43    /**
    2844     * Render the control's content.
    2945     *
Note: See TracChangeset for help on using the changeset viewer.