#3994 closed enhancement (duplicate)
Use functions instead of $bp global when referencing user data
Reported by: | johnjamesjacoby | Owned by: | |
---|---|---|---|
Milestone: | 1.6 | Priority: | normal |
Severity: | minor | Version: | 1.5.3 |
Component: | Core | Keywords: | |
Cc: |
Description
We still directly reference $bp->loggedin_user->domain and $bp->displayed_user->domain in many places, when we should be using bp_loggedin_user_domain() and bp_displayed_user_domain(), respectively.
Same goes for many of the other userdata related references.
These should be switched over to their functions.
Change History (4)
Note: See
TracTickets for help on using
tickets.
(In [5704]) Replace direct references to $bp user domains with their functional equivalents. See #3994.