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/class-wp-customize-section.php

    r41768 r42034  
    386386/** WP_Customize_Nav_Menu_Section class */
    387387require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-section.php' );
     388
     389/**
     390 * WP_Customize_New_Menu_Section class
     391 *
     392 * As this file is deprecated, it will trigger a deprecation notice if instantiated. In a subsequent
     393 * release, the require_once() here will be removed and _deprecated_file() will be called if file is
     394 * required at all.
     395 *
     396 * @deprecated 4.9.0 This file is no longer used due to new menu creation UX.
     397 */
     398require_once( ABSPATH . WPINC . '/customize/class-wp-customize-new-menu-section.php' );
Note: See TracChangeset for help on using the changeset viewer.