[buddypress-trac] [BuddyPress Trac] #5456: Filter bp_has_groups query args

buddypress-trac noreply at wordpress.org
Wed Mar 12 18:45:17 UTC 2014


#5456: Filter bp_has_groups query args
-------------------------+--------------------
 Reporter:  Offereins    |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  2.0
Component:  Groups       |     Version:  1.9.2
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+--------------------
Changes (by boonebgorges):

 * milestone:  Awaiting Review => 2.0


Comment:

 Adding a filter to the arguments is a pretty general solution to this
 specific issue. The problem is that `bp_has_groups()` is a bully about the
 'search_terms' argument: it overrides values passed to the function, in
 favor of those found in the URL parameters. Let's correct this issue
 before adding general filters.

 So, in brief, you can ensure that search params won't apply like this:

 {{{
 if ( bp_has_groups( array( 'search_terms' => false, ) ) ) : // ...
 }}}

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


More information about the buddypress-trac mailing list