[buddypress-trac] [BuddyPress Trac] #7573: BP_Group_Member_Query should support multiple group IDs

buddypress-trac noreply at wordpress.org
Tue Jul 25 22:07:44 UTC 2017


#7573: BP_Group_Member_Query should support multiple group IDs
-------------------------+------------------------------
 Reporter:  r-a-y        |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Groups       |     Version:  1.8
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------------------

Comment (by dcavins):

 Hi @r-a-y-

 I think this is a great idea. In your attached patch, what would trigger
 the else condition:


 {{{
 else {
     $group_ids_sql = $wpdb->prepare( "group_id = %d",
 $this->query_vars['group_id'] );
 }
 }}}

 Maybe if an empty array or empty string was passed into the function? I
 guess I'm wondering, is there a value that you could pass that would be
 stripped down to an empty array by `wp_parse_id_list()`, but would be
 useful to do an equals check on?

 Thanks for setting me straight. :)

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


More information about the buddypress-trac mailing list