[wp-trac] [WordPress Trac] #43644: Revert multiline calls to actions and filters

WordPress Trac noreply at wordpress.org
Tue Mar 27 18:18:47 UTC 2018


#43644: Revert multiline calls to actions and filters
-------------------------------------+-------------------------------------
 Reporter:  johnbillion              |       Owner:  johnbillion
     Type:  task (blessed)           |      Status:  accepted
 Priority:  normal                   |   Milestone:  5.0
Component:  General                  |     Version:  trunk
 Severity:  normal                   |  Resolution:
 Keywords:  needs-patch 2nd-opinion  |     Focuses:  docs, coding-standards
-------------------------------------+-------------------------------------

Comment (by jrf):

 > Who made the proposal to have these hard to read bits in the coding
 standards in the first place? I've never seen that formatting in core
 before. Lets review that first! :)

 I've not been involved in the original creation of the Core coding
 standards, so I cannot answer that question.

 However, most of these kind of function call layout changes come from the
 WP Core rule that [https://make.wordpress.org/core/handbook/best-practices
 /coding-standards/php/#indentation multi-item associative arrays should be
 multi-line] and the fixers kicking in to change the code from single line
 to multi-line arrays.

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


More information about the wp-trac mailing list