[wp-trac] [WordPress Trac] #19399: New uploader doesn't show if the options for large image sizes are not numbers
WordPress Trac
wp-trac at lists.automattic.com
Wed Nov 30 15:12:49 UTC 2011
#19399: New uploader doesn't show if the options for large image sizes are not
numbers
--------------------------+---------------------
Reporter: westi | Owner: azaozz
Type: defect (bug) | Status: new
Priority: high | Milestone: 3.3
Component: Upload | Version: 3.3
Severity: major | Resolution:
Keywords: has-patch |
--------------------------+---------------------
Comment (by nacin):
Patch won't work quite right. That doesn't sanitize get_option(
'large_size_h' ), it only confirms it can be sanitized to a non-zero
value.
You want:
{{{
$large_size_h = absint( get_option('large_size_h') );
if ( ! $large_size_h )
$large_size_h = 1024;
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19399#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list