Make WordPress Core

Opened 2 years ago

Last modified 19 months ago

#19647 assigned enhancement

Use add_node() instead of add_menu() in core

Reported by: linuxologos Owned by: ryan
Milestone: Awaiting Review Priority: normal
Severity: minor Version: 3.3
Component: Toolbar Keywords: has-patch 2nd-opinion
Focuses: Cc:


It's clear through class-wp-admin-bar.php and Nacin has stated this too:

The API previously emphasized add_menu(), but this can be confusing, so add_node() is now being promoted a bit more.

Another step towards this would be that the core used add_node() instead of add_menu() when building menu items in admin-bar.php.

Proposed patch replaces all references to the add_menu() method with the add_node() one. (Also some code structure modifications for wp_admin_bar_appearance_menu().)

Attachments (1)

19647.patch (11.6 KB) - added by linuxologos 2 years ago.

Download all attachments as: .zip

Change History (2)

linuxologos2 years ago

comment:1 nacin19 months ago

  • Owner set to ryan
  • Status changed from new to assigned

Ryan, you game?

Note: See TracTickets for help on using tickets.