[buddypress-trac] [BuddyPress Trac] #7192: Improve $args included in `bp_current_user_can` and `bp_user_can` filters.
buddypress-trac
noreply at wordpress.org
Mon Jul 25 16:41:12 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 DJPaul):
Patch missed removing `$blog_id` var on line 266 (as i look at it on trac
with its line number).
We also need to catch if the user isn't logged in.
`current_user_can_for_blog` took care of this but we aren't using it any
more. (line 280 of the patch in the trac view, again). I think an 0 might
cause problems in WP `current_user_can` (it seems like relying on that
would be undefined behaviour).
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7192#comment:4>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list