[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 17:01:40 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 SergeyBiryukov):

 Replying to [comment:11 dd32]:
 > To echo that, one of the primary reasons for using endif verses braces
 was to improve readability with large chunks of HTML, it's much harder to
 discern which brace ends a if or while than an explicit endif; and
 endwhile;.

 I had the same impression. Braces are fine for core itself, but even core
 generally uses the if/endif syntax for better readability when it comes to
 HTML output, so +1 to the handbook section reflecting that.

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


More information about the wp-trac mailing list