X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/f5fcdc7994bb67cce809bc4777944ae8b7fad4a4..53f4633144ed68c8b8fb5861f992b5489894a940:/wp-admin/includes/image.php diff --git a/wp-admin/includes/image.php b/wp-admin/includes/image.php index 355a63d7..be023e23 100644 --- a/wp-admin/includes/image.php +++ b/wp-admin/includes/image.php @@ -67,6 +67,8 @@ function wp_crop_image( $src, $src_x, $src_y, $src_w, $src_h, $dst_w, $dst_h, $s * * @since 2.1.0 * + * @global array $_wp_additional_image_sizes + * * @param int $attachment_id Attachment Id to process. * @param string $file Filepath of the Attached image. * @return mixed Metadata for attachment. @@ -190,8 +192,7 @@ function wp_generate_attachment_metadata( $attachment_id, $file ) { } // Remove the blob of binary data from the array. - if ( isset( $metadata['image']['data'] ) ) - unset( $metadata['image']['data'] ); + unset( $metadata['image']['data'] ); /** * Filter the generated attachment meta data.