[buddypress-trac] [BuddyPress Trac] #6013: Allow Group Admins to Unban Members
buddypress-trac
noreply at wordpress.org
Fri Dec 12 02:32:20 UTC 2014
#6013: Allow Group Admins to Unban Members
--------------------------+-----------------------
Reporter: skyrie | Owner: DJPaul
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 2.2
Component: Groups | Version:
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+-----------------------
Comment (by r-a-y):
Good catch, thebigA.
The problem is with `wp_parse_str()`, which is used when we pass a
querystring to convert into an array as in the case of
`bp_group_has_members()`.
When the querystring is converted over to an array, the 'true' or 'false'
values are strings and need to be explicitly converted over to booleans.
I've attached a patch that fixes this by filtering `'wp_parse_str'` and
using PHP's `filter_var()` to convert the boolean over. This will fix any
old string / boolean issues we've had with wp_parse_args() in the past.
I think this may be more applicable as an upstream patch to WP.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6013#comment:5>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list