#19146 closed defect (bug) (fixed)
Remove $user_identity global usage in admin-bar.php
| Reported by: | duck_ | Owned by: | nacin |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.3 |
| Component: | General | Version: | 3.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
Used by the "My Account" menu, see [16077], the $user_identity global is back compat / 'deprecated' and we shouldn't use it, especially when we now have the full $current_user object via wp_get_current_user() anyway.
See [3566] for "Setup global user vars. Used by set_current_user() for back compat."
Patch also makes use the local $user_id variable instead of re-calling get_current_user_id() again.
Attachments (2)
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In [19284]: