[buddypress-trac] [BuddyPress Trac] #6286: Directories filtered by member roles
buddypress-trac
noreply at wordpress.org
Thu Apr 9 16:11:43 UTC 2015
#6286: Directories filtered by member roles
--------------------------+------------------
Reporter: sooskriszta | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.3
Component: API | Version:
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------
Comment (by johnjamesjacoby):
This all looks really good, save for maybe one bit:
{{{
$member_type = bp_get_current_member_type();
if ( ! $member_type && ! empty( $_GET['member_type'] ) ) {
if ( is_array( $_GET['member_type'] ) ) {
$member_type = $_GET['member_type'];
} else {
// Can be a comma-separated list.
$member_type = explode( ',', $_GET['member_type'] );
}
}
}}}
Possible we can `pluck` or `parse` this against known registered types, to
ensure we're dealing with proper member types and not Little Bobby;\" DROP
TABLES?
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6286#comment:27>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list