[wp-trac] [WordPress Trac] #46846: Tight comparisons and use of Yoda conditions are not consistent
WordPress Trac
noreply at wordpress.org
Wed Oct 22 23:24:06 UTC 2025
#46846: Tight comparisons and use of Yoda conditions are not consistent
------------------------------------+-------------------------------
Reporter: subrataemfluence | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.9
Component: Formatting | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch dev-feedback | Focuses: coding-standards
------------------------------------+-------------------------------
Changes (by SergeyBiryukov):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"61053" 61053]:
{{{
#!CommitTicketReference repository="" revision="61053"
Coding Standards: Use Yoda conditions consistently in `wp-
includes/formatting.php`.
While Yoda conditions are mostly relevant for variables and not required
if neither side is a variable, this commit aims to make the order more
consistent throughout the file.
Follow-up to [1636], [4990], [6974], [10322], [10769], [11048], [42770],
[47219], [56325].
Props subrataemfluence, sabernhardt, ishikaatxecurify, callumbw95,
peterwilsoncc, SergeyBiryukov.
Fixes #46846.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46846#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list