[wp-trac] [WordPress Trac] #52329: Twenty Twenty-One: Use Yoda condition

WordPress Trac noreply at wordpress.org
Wed Jan 20 12:04:42 UTC 2021


#52329: Twenty Twenty-One: Use Yoda condition
------------------------------+-----------------------------
 Reporter:  mukesh27          |      Owner:  (none)
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Bundled Theme     |    Version:  5.6
 Severity:  normal            |   Keywords:
  Focuses:  coding-standards  |
------------------------------+-----------------------------
 Use Yoda condition in https://github.com/WordPress/WordPress/blob/master
 /wp-content/themes/twentytwentyone/template-parts/header/site-
 branding.php#L37 as per best prectice documentation -
 https://make.wordpress.org/core/handbook/best-practices/coding-
 standards/php/#yoda-conditions

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52329>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list