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

WordPress Trac noreply at wordpress.org
Fri Feb 27 22:33:45 UTC 2015


#22587: Cast image sizes to array before looping
--------------------------+----------------------
 Reporter:  griffinjt     |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Media         |     Version:  3.3
 Severity:  normal        |  Resolution:  wontfix
 Keywords:  has-patch     |     Focuses:
--------------------------+----------------------
Changes (by wonderboymusic):

 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 There are 4 main uses of this in core now, 2 others that are deprecated.
 Casting doesn't make any sense, and I can't think of a great use case for
 someone blanking out every image size. A PHP warning goes a long way here
 - telling the dev that their code or some plugin is essentially breaking
 the media experience.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/22587#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list