[wp-trac] [WordPress Trac] #19647: Use add_node() instead of add_menu() in core

WordPress Trac noreply at wordpress.org
Fri Nov 8 13:17:48 UTC 2019


#19647: Use add_node() instead of add_menu() in core
------------------------------+------------------------
 Reporter:  linuxologos       |       Owner:  chriscct7
     Type:  enhancement       |      Status:  closed
 Priority:  low               |   Milestone:  5.4
Component:  Toolbar           |     Version:  3.3
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+------------------------
Changes (by johnbillion):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"46678" 46678]:
 {{{
 #!CommitTicketReference repository="" revision="46678"
 Toolbar: Un-deprecate the `WP_Admin_Bar::add_menu()` method.

 This is only a wrapper for the `add_node()` method, but it's in widespread
 use both in core until [46642] and in thousands of plugins and themes.
 Deprecating it would have made sense when #19647 was originally opened but
 that's no longer the case.

 Props whyisjake

 Fixes #19647
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/19647#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list