[wp-trac] Re: [WordPress Trac] #10047: [Code Review] An array should not be directly put into a string

WordPress Trac wp-trac at lists.automattic.com
Sat Jun 6 12:16:22 GMT 2009


#10047: [Code Review] An array should not be directly put into a string
--------------------------+-------------------------------------------------
 Reporter:  kamiyeye      |       Owner:           
     Type:  defect (bug)  |      Status:  new      
 Priority:  high          |   Milestone:  2.8      
Component:  Template      |     Version:  2.8      
 Severity:  blocker       |    Keywords:  has-patch
--------------------------+-------------------------------------------------
Changes (by dd32):

  * keywords:  needs-patch => has-patch


Comment:

 > attachment 10047.diff added
  * Changes the code mentioned to use array notation
  * Changes a XMLRPC call to array notation as well (Changed it earlier..
 not because it was buggy though)

 For anyone elses reference, Heres a quick regex to pull up the locations
 where the string notation is used:
 {{{
 \w+\(\s*["'][a-z0-9]+=
 }}}

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


More information about the wp-trac mailing list