[wp-trac] [WordPress Trac] #41057: Update PHP codebase per WordPress PHP Coding Standards

WordPress Trac noreply at wordpress.org
Thu Jun 15 10:14:17 UTC 2017


#41057: Update PHP codebase per WordPress PHP Coding Standards
----------------------------+-----------------------
 Reporter:  netweb          |       Owner:  pento
     Type:  task (blessed)  |      Status:  accepted
 Priority:  normal          |   Milestone:  4.9
Component:  General         |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+-----------------------

Comment (by pento):

 Replying to [comment:3 markjaquith]:
 > We sure we want to be doing this? It's not currently done in core with
 any consistency, and seems noisy. Any good code editor does brace
 highlighting (and collapsing).
 >
 > {{{
 > }// End foreach().
 > }}}
 >

 That rule goes all the way back to the
 [https://codex.wordpress.org/index.php?title=WordPress_Coding_Standards&oldid=16276#Brace_Style
 original coding standards], 12 years old tomorrow. It was pretty clearly
 added for a time when code editors didn't have nice features like bracket
 matching.

 I think we can safely remove it.

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


More information about the wp-trac mailing list