Declare the variable before using it. props danielbachhuber. fixes #23710.
git-svn-id: http://core.svn.wordpress.org/trunk@23632 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ebe758b5c6
commit
caf591b7aa
|
@ -84,6 +84,7 @@ function wp_generate_attachment_metadata( $attachment_id, $file ) {
|
|||
// make thumbnails and other intermediate sizes
|
||||
global $_wp_additional_image_sizes;
|
||||
|
||||
$sizes = array();
|
||||
foreach ( get_intermediate_image_sizes() as $s ) {
|
||||
$sizes[$s] = array( 'width' => '', 'height' => '', 'crop' => false );
|
||||
if ( isset( $_wp_additional_image_sizes[$s]['width'] ) )
|
||||
|
|
Loading…
Reference in New Issue