[wp-trac] [WordPress Trac] #50871: When exact is true and orderby set to relevance, there is a DB error on search results page
WordPress Trac
noreply at wordpress.org
Fri Aug 7 16:18:15 UTC 2020
#50871: When exact is true and orderby set to relevance, there is a DB error on
search results page
------------------------------------+------------------------------
Reporter: 5um17 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version:
Severity: normal | Resolution:
Keywords: has-patch dev-feedback | Focuses:
------------------------------------+------------------------------
Comment (by 5um17):
Could you please take another look at
https://core.trac.wordpress.org/browser/trunk/src/wp-includes/class-wp-
query.php#L2368 ?
I am sorry but I don't see any braces wrapping last two condition.
[[Image(https://i.ibb.co/SyfYBrd/07-08-2020-21-35-56.png)]]
I am showing the start and end of parentheses with arrow and highlighted
internal braces. There is no braces wrapping last `&&` and `||`
And only because of this it is showing error.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50871#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list