[buddypress-trac] [BuddyPress Trac] #5769: Configurable wildcard search types in BP_User_Query

buddypress-trac noreply at wordpress.org
Sun Jul 20 15:31:59 UTC 2014


#5769: Configurable wildcard search types in BP_User_Query
-------------------------+------------------------------------
 Reporter:  DJPaul       |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  2.1
Component:  Core         |    Version:
 Severity:  normal       |   Keywords:  has-patch dev-feedback
-------------------------+------------------------------------
 For #3278, I need to be able to set the wildcards used around the
 `search_terms` argument in `BP_User_Query`.

 Right now, we add `%` to both sides of the search term. For auto-
 suggestions, I need to be able to do a member search in `BP_User_Query`
 but only allowing the wildcard on the right-hand side of the search
 string, e.g. `hello%' instead of '%hello%'.

 Attached patch adds a new `search_wildcard` argument to `BP_User_Query`,
 with a unit test.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5769>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list