[wp-trac] [WordPress Trac] #62164: Fix PHPCS "Yoda Condition checks" of WordPress Core file media.php.
WordPress Trac
noreply at wordpress.org
Thu Oct 3 19:28:51 UTC 2024
#62164: Fix PHPCS "Yoda Condition checks" of WordPress Core file media.php.
---------------------------+------------------------------
Reporter: deepakrohilla | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
---------------------------+------------------------------
Comment (by debarghyabanerjee):
Hi @deepakrohilla, Thanks for reporting this, but I don't think this is
needed/required as it doesn't involve a comparison with a variable, rather
with the count.
Please also check: https://developer.wordpress.org/coding-standards
/wordpress-coding-standards/php/#yoda-conditions
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62164#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list