Multi-word Search returns drafts, revisions, auto-saves…everything!
-
Howdy. I’m a fairly experienced WP developer who’s having the worst time figuring this one out…any suggestions appreciated. I’m running out of hair to pull out.
The search feature on the latest site I’ve built only works properly when there is one search term. If a user searches for two or more words (i.e., a phrase), the search results always turn up what appears to be EVERYTHING in the WP database…including revisions, autosaves, and drafts. In other words:
A search for “river” returns the expected results. Fine.
A search for “the river” (which should match some posts) returns EVERYTHING (including drafts, autosaves, and revisions).
A search for “hsgdg dkjf” (which should match nothing) returns EVERYTHING (including drafts, autosaves, and revisions).
The site does have a number of plugins installed, some by the client (ugh!), but I fail to see how any of them could affect just the search query without botching other page queries.
If anyone has any experience with this behavior, or suggestions on how to debug this issue, I’d greatly appreciate it.
- The topic ‘Multi-word Search returns drafts, revisions, auto-saves…everything!’ is closed to new replies.