[wp-trac] [WordPress Trac] #42471: In wp_query, the function parse_search need a remove_placeholder_escape()
WordPress Trac
noreply at wordpress.org
Tue Nov 14 01:17:55 UTC 2017
#42471: In wp_query, the function parse_search need a remove_placeholder_escape()
-------------------------------------+------------------------------
Reporter: w.sung | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Database | Version: 4.8.3
Severity: normal | Resolution:
Keywords: reporter-feedback close | Focuses:
-------------------------------------+------------------------------
Changes (by w.sung):
* keywords: reporter-feedback => reporter-feedback close
Comment:
Hi @dd32 ,
thank you for your advice. You are right. That wasn't the problem. My
problem was, that in 4.8.2 the where-query was like:
WHERE 1=1 AND (((wp_posts.post_title LIKE '%xbox%')) AND
((wp_posts.post_title LIKE '%one%'))) ...
In 4.8.3, I get something like that:
WHERE 1=1 AND (((wp_posts.post_title LIKE '%xbox%') OR
(wp_posts.post_excerpt LIKE '%xbox%') OR (wp_posts.post_content LIKE
'%xbox%'))) AND (((wp_posts.post_title LIKE '%one%') OR
(wp_posts.post_excerpt LIKE '%one%') OR (wp_posts.post_content LIKE
'%one%')))
I know now, why my results are different and now I can handle it.
Thanks For Help! Ticket can be closed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42471#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list