[buddypress-trac] [BuddyPress Trac] #5121: Review and improve capabilities checks

buddypress-trac noreply at wordpress.org
Sat Jun 20 13:54:57 UTC 2015


#5121: Review and improve capabilities checks
------------------------------------+------------------------------
 Reporter:  ericlewis               |       Owner:  johnjamesjacoby
     Type:  enhancement             |      Status:  accepted
 Priority:  normal                  |   Milestone:  Future Release
Component:  API - Roles/Capability  |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  dev-feedback            |
------------------------------------+------------------------------

Comment (by boonebgorges):

 In [changeset:"9957"]:
 {{{
 #!CommitTicketReference repository="" revision="9957"
 Convert second parameter of `bp_current_user_can()` to an `$args` array.

 This makes the syntax simpler for the vast majority of use cases, where an
 explicit `blog_id` doesn't need to be specified. It also makes it possible
 to
 pass additional arguments, such as an `item_id`, to
 `bp_current_user_can()`.

 An integer passed as the second parameter will trigger the backward-
 compatibility layer.

 Props thebrandonallen, r-a-y.
 See #5121. Fixes #6501.
 }}}

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


More information about the buddypress-trac mailing list