[wp-trac] [WordPress Trac] #64085: Missing parentheses in condition in delete_metadata()

WordPress Trac noreply at wordpress.org
Tue Oct 7 14:19:53 UTC 2025


#64085: Missing parentheses in condition in delete_metadata()
--------------------------------+------------------------------
 Reporter:  threadi             |       Owner:  (none)
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  Options, Meta APIs  |     Version:  6.8.3
 Severity:  normal              |  Resolution:
 Keywords:                      |     Focuses:
--------------------------------+------------------------------

Comment (by SergeyBiryukov):

 Hi there, welcome back to WordPress Trac! Thanks for the ticket.

 Replying to [comment:2 TobiasBg]:
 > I actually think that the `&&` is evaluated before the `||` even without
 parentheses.

 Yes, see [https://www.php.net/manual/en/language.operators.precedence.php
 PHP: Operator Precedence]. The condition is correct as is, and the
 additional parentheses would be redundant here.

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


More information about the wp-trac mailing list