Opened 3 years ago
Last modified 3 years ago
#41862 new defect (bug)
"Attach to Existing Content" popup search box pulling up records that don't match search query
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 4.8.1 |
Component: | Query | Keywords: | close |
Focuses: | administration | Cc: |
Description
I am not very sure whether this is really a bug in WordPress core but today I encountered it accidentally.
I was Attach-ing an image from media library to an existing post. I typed in a search query (10 thing) in the search box and hit submit. Multiple records came up, while I was expecting only one which has the phrase in its title and content body. None of the other posts which appear along with, is associated with the search phrase. I checked title, body, and meta values for this post.
But when I searched with 10 things (added an "s"), I got the desired result, i.e. only a single post.
I have no third party plugin installed in my system. It is a clean install and everything is up to date.
It's likely that the found posts contain
thing
somewhere in content.The search is supposed to return all the relevant results, not just strict matches, see #7394 for details. I don't see anything wrong here at a glance.