From 8d300bf5b7e52cf9279cf8932449cad98826d1cd Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Wed, 9 Dec 2009 09:44:53 +0000 Subject: [PATCH] s/size/s/ fixes #11370 props nacin. git-svn-id: https://develop.svn.wordpress.org/trunk@12346 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/image.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-admin/includes/image.php b/wp-admin/includes/image.php index ba0c99c5d2..0b5e584569 100644 --- a/wp-admin/includes/image.php +++ b/wp-admin/includes/image.php @@ -110,15 +110,15 @@ function wp_generate_attachment_metadata( $attachment_id, $file ) { if ( isset( $_wp_additional_image_sizes[$s]['width'] ) ) $sizes[$s]['width'] = intval( $_wp_additional_image_sizes[$s]['width'] ); // For theme-added sizes 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'] ) ) $sizes[$s]['height'] = intval( $_wp_additional_image_sizes[$s]['height'] ); // For theme-added sizes 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'] ) ) $sizes[$s]['crop'] = intval( $_wp_additional_image_sizes[$s]['crop'] ); // For theme-added sizes 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 );