Make WordPress Core


Ignore:
Timestamp:
10/28/2017 05:47:06 AM (7 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/class-wp-customize-control.php

    r41935 r42034  
    770770/**
    771771 * WP_Customize_Nav_Menu_Name_Control class.
     772 *
     773 * As this file is deprecated, it will trigger a deprecation notice if instantiated. In a subsequent
     774 * release, the require_once() here will be removed and _deprecated_file() will be called if file is
     775 * required at all.
     776 *
     777 * @deprecated 4.9.0 This file is no longer used due to new menu creation UX.
    772778 */
    773779require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-name-control.php' );
Note: See TracChangeset for help on using the changeset viewer.