[wp-trac] [WordPress Trac] #58948: Use Elvis operator (`:?`) to replace repeating ternary patterns (`a ? a : b`)

WordPress Trac noreply at wordpress.org
Tue Oct 17 20:11:44 UTC 2023


#58948: Use Elvis operator (`:?`) to replace repeating ternary patterns (`a ? a :
b`)
-----------------------------+-------------------------------
 Reporter:  ayeshrajans      |       Owner:  (none)
     Type:  enhancement      |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  General          |     Version:  6.3
 Severity:  trivial          |  Resolution:
 Keywords:  has-patch close  |     Focuses:  coding-standards
-----------------------------+-------------------------------
Changes (by jrf):

 * keywords:  has-patch => has-patch close


Comment:

 I'm going to suggest closing this ticket as introducing these changes is
 against the WP Coding Standards.

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


More information about the wp-trac mailing list