s/size/s/ fixes #11370 props nacin.
git-svn-id: https://develop.svn.wordpress.org/trunk@12346 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
aeb4be8d81
commit
8d300bf5b7
|
@ -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 );
|
||||||
|
|
Loading…
Reference in New Issue