[wp-trac] [WordPress Trac] #22587: Cast image sizes to array before looping
WordPress Trac
noreply at wordpress.org
Sun Nov 25 22:02:49 UTC 2012
#22587: Cast image sizes to array before looping
-----------------------------+------------------------------
Reporter: griffinjt | Type: defect (bug)
Status: new | Priority: normal
Milestone: Awaiting Review | Component: Warnings/Notices
Version: trunk | Severity: normal
Keywords: has-patch |
-----------------------------+------------------------------
If someone doesn't filter the `image_size_names_choose` filter correctly,
or uses some helper function like `__return_false` if they don't want to
display any image sizes, a warning is thrown.
The `$sizes` var should be cast to an array before looping to avoid this
warning.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22587>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list