#7418 closed enhancement (fixed)
Make group search more flexible.
| Reported by: | dcavins | Owned by: | dcavins |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.8 |
| Component: | Groups | Version: | 2.7.2 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | dcavins |
Description
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().)
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Add search_columns parameter and calculate wildcard placement in search string.