[buddypress-trac] [BuddyPress Trac] #7658: Use WP functions to retrieve current user ID.

buddypress-trac noreply at wordpress.org
Thu Jan 18 15:52:00 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):

 This came from a Slack discussion, see nested conversation here:
 https://wordpress.slack.com/archives/C02RQBYUG/p1513187013000352

 > The REST downgrade is interesting in that I think the point was always
 that those two user objects be clones of one-another, so however that
 variable is being nerfed, it should be bubbling back up to
 $bp->current_user, I would have assumed.

 These aren't objects, like @dcavins shows above.

 As per the report, this downgrade is done in `rest_cookie_check_errors()`.
 This happens late - after `init` - I think this occurs during
 `parse_request`, so it's after BuddyPress initialises its initial
 settings.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7658#comment:4>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list