[wp-trac] [WordPress Trac] #12209: Syntax errors in filters

WordPress Trac wp-trac at lists.automattic.com
Fri Feb 12 06:52:51 UTC 2010


#12209: Syntax errors in filters
--------------------------------------+-------------------------------------
 Reporter:  mfields                   |        Owner:         
     Type:  defect (bug)              |       Status:  closed 
 Priority:  normal                    |    Milestone:         
Component:  Administration            |      Version:         
 Severity:  normal                    |   Resolution:  invalid
 Keywords:  filter, variable, syntax  |  
--------------------------------------+-------------------------------------
Changes (by dd32):

  * status:  new => closed
  * resolution:  => invalid


Comment:

 It does look weird at first if you've never seen it. But it is
 syntactically correct.

 It reduces errors too, take this for example:

 {{{
 "${bar}_test"
 "{$bar}_test"
 "$bar_test"
 //Ok, All those look sane, now try:
 "${bar_foo_result}_taz"
 "{$bar_foo_result}_taz"
 "$bar_foo_result_taz"
 }}}

 The braces just make it that much more clearer that the variable name is
 held within, and that the braces will not appear in the final string..

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


More information about the wp-trac mailing list