[buddypress-trac] [BuddyPress Trac] #6550: set_current_user deprecated since WP 3.0

buddypress-trac noreply at wordpress.org
Tue Jul 7 14:52:30 UTC 2015


#6550: set_current_user deprecated since WP 3.0
------------------------------+---------------------
 Reporter:  modemlooper       |       Owner:
     Type:  enhancement       |      Status:  closed
 Priority:  low               |   Milestone:
Component:  Component - Core  |     Version:  2.3.2
 Severity:  minor             |  Resolution:  fixed
 Keywords:                    |
------------------------------+---------------------
Changes (by johnjamesjacoby):

 * keywords:  2nd-opinion =>
 * status:  new => closed
 * resolution:   => fixed
 * milestone:  Awaiting Review =>


Comment:

 The `set_current_user` action fires inside the `wp_set_current_user()`
 function, so even though it's a bit confusing and not ideal code
 architecture from upstream, BuddyPress's usage here is as required.

 Searching the codebase for `set_current_user()` usages only brings up
 BackPress code, so BuddyPress also does not call either function directly;
 it's just along for the WordPress ride.

 Even though this issue was a miss, thanks for keeping an eye out for stuff
 like this. I find it to be incredibly easy to miss when core deprecates
 and rearranges things, so it's good to call these out to give them a
 deeper look.

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


More information about the buddypress-trac mailing list