[buddypress-trac] [BuddyPress Trac] #7192: Improve $args included in `bp_current_user_can` and `bp_user_can` filters.

buddypress-trac noreply at wordpress.org
Wed Jul 20 19:39:37 UTC 2016


#7192: Improve $args included in `bp_current_user_can` and `bp_user_can` filters.
--------------------------+------------------------------
 Reporter:  dcavins       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Core          |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by r-a-y):

 Good catch, dcavins!

 Perhaps, we should think about using the new `bp_user_can()` function in
 `bp_current_user_can()`.  `02.patch` is an attempt at merging this
 functionality.  In an ideal world, we would drop support for the
 `'bp_current_user_can'` filter in place of the `'bp_user_can'` filter
 instead.

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


More information about the buddypress-trac mailing list