[buddypress-trac] [BuddyPress Trac] #7418: Make group search more flexible.
buddypress-trac
noreply at wordpress.org
Mon Jan 9 18:47:44 UTC 2017
#7418: Make group search more flexible.
-------------------------+-----------------------------
Reporter: dcavins | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Groups | Version: 2.7.2
Severity: normal | Keywords: has-patch
-------------------------+-----------------------------
While working on #6431, I realized that the group search could be more
flexible, like the `WP_User_Query` search that allows the specification of
where the wildcard should be set and which columns should be searched.
I'm attaching a patch that mostly duplicates the logic of `WP_User_Query`.
The one difference is that our search has always assumed that the terms
would be wild carded on both ends, so the default if no wildcard
characters are detected is to follow the old behavior.
(Re #6431, then `get_by_letter()` could just use `get()`.)
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7418>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list