WordPress.org

Make WordPress Core

Opened 3 months ago

Last modified 3 months ago

#47694 new enhancement

Adding a filter for $searchand variable

Reported by: bebro Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Query Keywords:
Focuses: Cc:
PR Number:

Description

Hi,
I wish to know if we can add a filter to the $searchand variable in parse_search method to give the developer the option to modify the logic to OR instead of AND. I believe it will help a lot as it happens in some websites where people search for many words will not be accurate. In these cases OR may be better.

Change History (1)

#1 @SergeyBiryukov
3 months ago

  • Component changed from General to Query
  • Type changed from feature request to enhancement
Note: See TracTickets for help on using tickets.