Opened 16 years ago
Closed 15 years ago
#16540 closed enhancement (fixed)
Unnecessary use of global in admin-bar.php
| Reported by: | andriijas | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.2 |
| Component: | Administration | Version: | 3.1 |
| Severity: | trivial | Keywords: | has-patch |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Since we're on PHP5, we don't need to pass by reference anymore.