Make WordPress Core

Opened 8 months ago

Last modified 7 weeks ago

#42364 new task (blessed)

Customize: Remove deprecated nav menu classes

Reported by: westonruter Owned by:
Milestone: 5.0 Priority: low
Severity: normal Version: 4.9
Component: Customize Keywords: early has-patch
Focuses: Cc:


The following classes are deprecated in 4.9 and can be removed in 5.0:

  • wp.customize.Menus.NewMenuControl (in JS)
  • WP_Customize_New_Menu_Section (in PHP)
  • WP_Customize_New_Menu_Control (in PHP)

These classes are not used by plugins and they are not used in core. For more, see #42357.

Attachments (1)

42364.diff (8.5 KB) - added by Matthias Reuter 7 weeks ago.
I've created a diff with the patch to remove the classes mentioned.

Download all attachments as: .zip

Change History (3)

#1 @westonruter
8 months ago

In 42034:

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.

@Matthias Reuter
7 weeks ago

I've created a diff with the patch to remove the classes mentioned.

#2 @Matthias Reuter
7 weeks ago

  • Keywords has-patch added; needs-patch removed
Note: See TracTickets for help on using tickets.