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

buddypress-trac noreply at wordpress.org
Thu Sep 1 21:27:16 UTC 2016


#7192: Improve $args included in `bp_current_user_can` and `bp_user_can` filters.
-------------------------------------------+-----------------------
 Reporter:  dcavins                        |       Owner:  dcavins
     Type:  defect (bug)                   |      Status:  reopened
 Priority:  normal                         |   Milestone:  2.7
Component:  Core                           |     Version:
 Severity:  normal                         |  Resolution:
 Keywords:  dev-feedback has-patch commit  |
-------------------------------------------+-----------------------

Comment (by dcavins):

 In [changeset:"11058"]:
 {{{
 #!CommitTicketReference repository="" revision="11058"
 bp_current_user_can(): Fix backward compatibility.

 The changes to bp_current_user_can() in r11052 broke backward
 compatibility for passing the site id as the `$arg` instead of an
 array. This commit restores the old behavior.

 See #7192.
 }}}

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


More information about the buddypress-trac mailing list