Opened 15 years ago
Closed 15 years ago
#16540 closed enhancement (fixed)
Unnecessary use of global in admin-bar.php
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 3.2 | Priority: | normal |
| Severity: | trivial | Version: | 3.1 |
| Component: | Administration | Keywords: | has-patch |
| Focuses: | Cc: |
Description
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.
Attachments (2)
Change History (8)
Note: See
TracTickets for help on using
tickets.
Since we're on PHP5, we don't need to pass by reference anymore.