From 458b77814c8e20bd9c4ba37c269a2ca68b0ca503 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 7 Mar 2013 04:46:19 +0000 Subject: [PATCH] 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 --- wp-admin/includes/image.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-admin/includes/image.php b/wp-admin/includes/image.php index a842287094..08d4c45711 100644 --- a/wp-admin/includes/image.php +++ b/wp-admin/includes/image.php @@ -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'] ) )