[buddypress-trac] [BuddyPress Trac] #7192: Improve $args included in `bp_current_user_can` and `bp_user_can` filters.
    buddypress-trac 
    noreply at wordpress.org
       
    Fri Sep 16 20:47:13 UTC 2016
    
    
  
#7192: Improve $args included in `bp_current_user_can` and `bp_user_can` filters.
------------------------------+----------------------
 Reporter:  dcavins           |       Owner:  dcavins
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  2.7
Component:  Core              |     Version:  1.6
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |
------------------------------+----------------------
Changes (by r-a-y):
 * status:  reopened => closed
 * resolution:   => fixed
Comment:
 In [changeset:"11107"]:
 {{{
 #!CommitTicketReference repository="" revision="11107"
 Caps: In `bp_current_user_can()`, use `get_current_user_id()` instead of
 `bp_loggedin_user_id()`.
 We're switching to `get_current_user_id()` because `bp_loggedin_user_id()`
 is initialized on the `'bp_setup_globals'` hook, which fires too late in
 certain instances.  We also apply the `'bp_loggedin_user_id'` filter for
 devs that are using it.
 Fixes #7192.
 }}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7192#comment:21>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
    
    
More information about the buddypress-trac
mailing list