Declare the variable before using it. props danielbachhuber. fixes #23710.
git-svn-id: https://develop.svn.wordpress.org/trunk@23632 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e2fa722fbb
commit
458b77814c
|
@ -84,6 +84,7 @@ function wp_generate_attachment_metadata( $attachment_id, $file ) {
|
||||||
// make thumbnails and other intermediate sizes
|
// make thumbnails and other intermediate sizes
|
||||||
global $_wp_additional_image_sizes;
|
global $_wp_additional_image_sizes;
|
||||||
|
|
||||||
|
$sizes = array();
|
||||||
foreach ( get_intermediate_image_sizes() as $s ) {
|
foreach ( get_intermediate_image_sizes() as $s ) {
|
||||||
$sizes[$s] = array( 'width' => '', 'height' => '', 'crop' => false );
|
$sizes[$s] = array( 'width' => '', 'height' => '', 'crop' => false );
|
||||||
if ( isset( $_wp_additional_image_sizes[$s]['width'] ) )
|
if ( isset( $_wp_additional_image_sizes[$s]['width'] ) )
|
||||||
|
|
Loading…
Reference in New Issue