Make WordPress Core


Ignore:
Timestamp:
12/09/2009 09:44:53 AM (15 years ago)
Author:
westi
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/image.php

    r12342 r12346  
    111111                $sizes[$s]['width'] = intval( $_wp_additional_image_sizes[$s]['width'] ); // For theme-added sizes
    112112            else
    113                 $sizes[$s]['width'] = get_option( "{$size}_size_w" ); // For default sizes set in options
     113                $sizes[$s]['width'] = get_option( "{$s}_size_w" ); // For default sizes set in options
    114114            if ( isset( $_wp_additional_image_sizes[$s]['height'] ) )
    115115                $sizes[$s]['height'] = intval( $_wp_additional_image_sizes[$s]['height'] ); // For theme-added sizes
    116116            else
    117                 $sizes[$s]['height'] = get_option( "{$size}_size_h" ); // For default sizes set in options
     117                $sizes[$s]['height'] = get_option( "{$s}_size_h" ); // For default sizes set in options
    118118            if ( isset( $_wp_additional_image_sizes[$s]['crop'] ) )
    119119                $sizes[$s]['crop'] = intval( $_wp_additional_image_sizes[$s]['crop'] ); // For theme-added sizes
    120120            else
    121                 $sizes[$s]['crop'] = get_option( "{$size}_crop" ); // For default sizes set in options
     121                $sizes[$s]['crop'] = get_option( "{$s}_crop" ); // For default sizes set in options
    122122        }
    123123
Note: See TracChangeset for help on using the changeset viewer.