Make WordPress Core

Opened 6 years ago

Last modified 3 years ago

#20352 new enhancement

Use str_getcsv() to parse search terms in WP_Query — at Initial Version

Reported by: scribu Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version:
Component: Query Keywords: has-patch needs-refresh needs-unit-tests
Focuses: Cc:


We use an ugly regex to split search terms like these:

term1 term2 "exact match"

We could use str_getcsv() instead, for better readability.

Change History (0)

Note: See TracTickets for help on using tickets.