[wp-trac] [WordPress Trac] #22587: Cast image sizes to array before looping
WordPress Trac
noreply at wordpress.org
Mon Nov 26 15:21:19 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: 3.3
Severity: normal | Resolution:
Keywords: has-patch |
------------------------------+------------------------------
Comment (by griffinjt):
Just looking further into this. In wp-admin/includes/media.php, this
filter is again used. If you do use the correct helper function
__return_empty_array, you are presented with a myriad of errors and
issues. This is because `$out` is not defined beforehand and is assumed
that it will be populated with image sizes. There should be a check to
ensure $out is actually set and not empty before even creating the Size
label and associated input fields.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22587#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list