[wp-trac] [WordPress Trac] #22587: Cast image sizes to array before looping

WordPress Trac noreply at wordpress.org
Mon Nov 26 00:02:08 UTC 2012


#22587: Cast image sizes to array before looping
------------------------------+------------------------------
 Reporter:  griffinjt         |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Warnings/Notices  |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |
------------------------------+------------------------------
Changes (by JustinSainton):

 * keywords:  has-patch close => has-patch


Comment:

 True, the reasoning may not be sound - but core has about 250+ instances
 of casting variables to an array in a foreach loop.  +1 for parity's sake,
 not for bad dev use cases.

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


More information about the wp-trac mailing list