[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 15:01:30 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):

 Thanks for checking @SergeyBiryukov

 >As far as I can tell, this is already the case in the current condition:

 No actually this is not true.

 There is no parenthesis in the current condition so it will results in

 {{{#!php
 <?php
 var_dump( false && false || true );
 }}}

 Which will result in `true`.

 In patch I am adding parenthesis

 {{{#!php
 <?php
 var_dump( false && ( false || true ) );
 }}}

 Please correct me if I am wrong?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50871#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list