[buddypress-trac] [BuddyPress Trac] #5596: Filtering groups by slug not working on Buddypress 2.0
buddypress-trac
noreply at wordpress.org
Sun Apr 27 04:09:20 UTC 2014
#5596: Filtering groups by slug not working on Buddypress 2.0
---------------------------+--------------------
Reporter: walmarandrade | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.0.1
Component: Groups | Version: 2.0
Severity: normal | Resolution:
Keywords: has-patch |
---------------------------+--------------------
Changes (by r-a-y):
* keywords: => has-patch
* milestone: Awaiting Review => 2.0.1
Comment:
Hi walmarandrade,
This is my fault. I made changes to only use the current group slug with
the `'slug'` parameter in r8050 for performance reasons and also because
our internal code notes that the `'slug'` parameter is only used when
`'type=single-group'`. And the `'single-group'` type is only set when
we're on a single group page.
I guess devs like you were exploiting this behavior so you can query a
group by slug! I've attached a patch that should allow you to use `'type
=single-group'` and `'slug'` like before in BP 1.9.
In a future release, we'll make it so you can use the `'slug'` parameter
without setting the `type` to `single-group`.
I would also recommend querying by group ID with the `'include'` parameter
whenever possible.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5596#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list