s/size/s/ fixes #11370 props nacin.

git-svn-id: http://svn.automattic.com/wordpress/trunk@12346 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2009-12-09 09:44:53 +00:00
parent f2df3f3751
commit 944bdb29a6
1 changed files with 3 additions and 3 deletions

View File

@ -110,15 +110,15 @@ function wp_generate_attachment_metadata( $attachment_id, $file ) {
if ( isset( $_wp_additional_image_sizes[$s]['width'] ) ) if ( isset( $_wp_additional_image_sizes[$s]['width'] ) )
$sizes[$s]['width'] = intval( $_wp_additional_image_sizes[$s]['width'] ); // For theme-added sizes $sizes[$s]['width'] = intval( $_wp_additional_image_sizes[$s]['width'] ); // For theme-added sizes
else else
$sizes[$s]['width'] = get_option( "{$size}_size_w" ); // For default sizes set in options $sizes[$s]['width'] = get_option( "{$s}_size_w" ); // For default sizes set in options
if ( isset( $_wp_additional_image_sizes[$s]['height'] ) ) if ( isset( $_wp_additional_image_sizes[$s]['height'] ) )
$sizes[$s]['height'] = intval( $_wp_additional_image_sizes[$s]['height'] ); // For theme-added sizes $sizes[$s]['height'] = intval( $_wp_additional_image_sizes[$s]['height'] ); // For theme-added sizes
else else
$sizes[$s]['height'] = get_option( "{$size}_size_h" ); // For default sizes set in options $sizes[$s]['height'] = get_option( "{$s}_size_h" ); // For default sizes set in options
if ( isset( $_wp_additional_image_sizes[$s]['crop'] ) ) if ( isset( $_wp_additional_image_sizes[$s]['crop'] ) )
$sizes[$s]['crop'] = intval( $_wp_additional_image_sizes[$s]['crop'] ); // For theme-added sizes $sizes[$s]['crop'] = intval( $_wp_additional_image_sizes[$s]['crop'] ); // For theme-added sizes
else else
$sizes[$s]['crop'] = get_option( "{$size}_crop" ); // For default sizes set in options $sizes[$s]['crop'] = get_option( "{$s}_crop" ); // For default sizes set in options
} }
$sizes = apply_filters( 'intermediate_image_sizes_advanced', $sizes ); $sizes = apply_filters( 'intermediate_image_sizes_advanced', $sizes );