[wp-trac] [WordPress Trac] #46846: Tight comparisons and use of Yoda conditions are not consistent

WordPress Trac noreply at wordpress.org
Fri Jun 27 17:04:45 UTC 2025


#46846: Tight comparisons and use of Yoda conditions are not consistent
------------------------------------+-------------------------------
 Reporter:  subrataemfluence        |       Owner:  (none)
     Type:  defect (bug)            |      Status:  closed
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Formatting              |     Version:
 Severity:  normal                  |  Resolution:  worksforme
 Keywords:  has-patch dev-feedback  |     Focuses:  coding-standards
------------------------------------+-------------------------------
Changes (by callumbw95):

 * status:  new => closed
 * resolution:   => worksforme


Comment:

 Hi @subrataemfluence,

 I have taken a quick look into this, and compared your patch to whats
 there today in the file, and I can see that most if not all conditionals
 are now written as yoda conditions.  As of such I am going to close this
 ticket, but if you have anything further to add on this please reopen it.

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


More information about the wp-trac mailing list