[buddypress-trac] [BuddyPress Trac] #7658: Use WP functions to retrieve current user ID.
buddypress-trac
noreply at wordpress.org
Thu Jan 18 15:59:58 UTC 2018
#7658: Use WP functions to retrieve current user ID.
--------------------------+------------------------------
Reporter: dcavins | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Core | Version: 2.9.2
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by DJPaul):
We don't have to fix the entire thing right now (particularly,
`displayed_user`) - the bug report is about the consequence of the
downgrade for `loggedin_user`, and I'd rather we get a fix for that, and
not tie ourselves to trying to re-architecture the rest of this at the
same time (that'd be a separate enhancement).
I think we replace the contents of all `bp_loggedin_*()` functions with
calls to WordPress equivalents.
And for backwards compatibility, we replace `$bp->loggedin_user` with an
object that has magic getter to handle `id`, `is_super_admin`, `domain`
etc (the properties @dcavins mentioned).
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7658#comment:5>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list