[wp-trac] [WordPress Trac] #16540: Unnecessary use of global in admin-bar.php
WordPress Trac
wp-trac at lists.automattic.com
Sat Feb 12 07:42:59 UTC 2011
#16540: Unnecessary use of global in admin-bar.php
-------------------------+-----------------------------
Reporter: andriijas | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.1
Severity: trivial | Keywords:
-------------------------+-----------------------------
In admin-bar.php line 78 function wp_admin_bar_my_account_menu takes
$wp_admin_bar as argument (as seen in line 60) and should use that in
favor of global.
That goes for the other wp_admin_bar_* functions that adds menus to the
admin bar in the same file as well.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16540>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list