[wp-trac] Re: [WordPress Trac] #4779: Proposal for HTTP POST and REQUEST API

WordPress Trac wp-trac at lists.automattic.com
Sun May 25 08:55:28 GMT 2008


#4779: Proposal for HTTP POST and REQUEST API
--------------------------------------------------+-------------------------
 Reporter:  darkdragon                            |        Owner:  anonymous
     Type:  enhancement                           |       Status:  new      
 Priority:  normal                                |    Milestone:  2.6      
Component:  Optimization                          |      Version:           
 Severity:  normal                                |   Resolution:           
 Keywords:  has-patch needs-testing dev-feedback  |  
--------------------------------------------------+-------------------------
Comment (by mdawaffe):

 I think the WP standard is to always use braces except in the following
 two circumstances:
  1. When there is "raw" HTML within the block.  That is, when there is
 closing and opening PHP tags {{{?>}}}, {{{<?php}}}.  This occurs in many
 templates and template functions.
  2. Wrapped around pluggable functions.

 I'm sure that there are places where WP does not adhere to that standard.

 As an aside, I think it's WP standard to use no braces at all for one line
 loops/conditionals:

 {{{
 if ( $foo )
   do_something();

 foreach ( $bobs as $bob )
   bob_it( $bob );
 }}}

 That is probably less adhered to (and more controversial) than the
 braces/long format issue above.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4779#comment:19>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list