[wp-trac] [WordPress Trac] #24549: Follow the WP Handbook Standard, and change The Loop of Core Themes to Use Brackets

WordPress Trac noreply at wordpress.org
Mon Jun 10 16:41:24 UTC 2013


#24549: Follow the WP Handbook Standard, and change The Loop of Core Themes to Use
Brackets
------------------------------------------------+--------------------------
 Reporter:  chriscct7                           |       Owner:
     Type:  enhancement                         |      Status:  new
 Priority:  normal                              |   Milestone:  Awaiting
Component:  Bundled Theme                       |  Review
 Severity:  normal                              |     Version:  trunk
 Keywords:  dev-feedback needs-codex has-patch  |  Resolution:
------------------------------------------------+--------------------------

Comment (by DrewAPicture):

 Replying to [comment:18 F J Kaiser]:
 > So (Nacin), if we say ''"Users over IDEs every day of the week."'', then
 we should immediately deprecate all Template Tags that `echo` something
 directly and ban `&&`, `||` and `^` operators from every theme file. Or in
 general: Abandon everything that doesn't clearly speak out what is
 happening. To see what we'll be left with, take a look at the bogus
 `index.php`-code from above.
 >
 > Final note: Having a ''WordPress coding "standard"'' is imho nonsense.
 Especially if every second case for a single rule is an edge case. I vote
 for dropping the "standard".

 This kind of hyperbole is unnecessary and doesn't advance the discussion
 at all. The coding standards are meant as a guide for for core, and as a
 suggested reference for everyone else.

 +1 to adding another section to the handbook as suggested by @kovshenin.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/24549#comment:20>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list