#19146 closed defect (bug) (fixed)
Remove $user_identity global usage in admin-bar.php
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.3 | Priority: | normal |
Severity: | normal | Version: | 3.1 |
Component: | General | Keywords: | has-patch |
Focuses: | Cc: |
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.
In [19284]: