[wp-trac] [WordPress Trac] #50258: Update WordPress Coding Standards ruleset

WordPress Trac noreply at wordpress.org
Mon Jun 8 21:23:27 UTC 2020


#50258: Update WordPress Coding Standards ruleset
------------------------------+-------------------------------
 Reporter:  desrosj           |       Owner:  desrosj
     Type:  task (blessed)    |      Status:  closed
 Priority:  low               |   Milestone:  5.5
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch         |     Focuses:  coding-standards
------------------------------+-------------------------------
Changes (by desrosj):

 * keywords:  has-patch needs-testing => has-patch


Comment:

 A new check was added to the ruleset for short ternary operator syntax,
 which is [https://make.wordpress.org/core/handbook/best-practices/coding-
 standards/php/#ternary-operator not allowed per the coding standards].

 [attachment:"50258.diff"] fixes the three occurrences of that in Core.

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


More information about the wp-trac mailing list