[wp-trac] [WordPress Trac] #54728: Coding Standards fixes for WP 6.0

WordPress Trac noreply at wordpress.org
Mon Mar 21 15:05:39 UTC 2022


#54728: Coding Standards fixes for WP 6.0
----------------------------+-------------------------------
 Reporter:  hellofromTonya  |       Owner:  (none)
     Type:  task (blessed)  |      Status:  new
 Priority:  normal          |   Milestone:  6.0
Component:  General         |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:  coding-standards
----------------------------+-------------------------------

Comment (by jrf):

 > For second one, however, unless I'm missing something, [52974] did not
 replace array() with compact(), but only relocated the compact() call
 while removing the redundant array() at the same time. All of these arrays
 were associative before the change, not numerically indexed.

 @SergeyBiryukov Ah! I completely overlooked that those filters had a
 `compact()` within the filter call. My bad! (though still good to verify
 this was the case for all of them)

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


More information about the wp-trac mailing list