diff --git a/wp-admin/includes/image.php b/wp-admin/includes/image.php index be023e23f9..222d35d015 100644 --- a/wp-admin/includes/image.php +++ b/wp-admin/includes/image.php @@ -110,10 +110,12 @@ function wp_generate_attachment_metadata( $attachment_id, $file ) { * Filter the image sizes automatically generated when uploading an image. * * @since 2.9.0 + * @since 4.4.0 The `$metadata` argument was addeed * - * @param array $sizes An associative array of image sizes. + * @param array $sizes An associative array of image sizes. + * @param array $metadata An associative array of image metadata: width, height, file. */ - $sizes = apply_filters( 'intermediate_image_sizes_advanced', $sizes ); + $sizes = apply_filters( 'intermediate_image_sizes_advanced', $sizes, $metadata ); if ( $sizes ) { $editor = wp_get_image_editor( $file ); diff --git a/wp-includes/version.php b/wp-includes/version.php index c2279b8479..1dcf7d1b89 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-34006'; +$wp_version = '4.4-alpha-34007'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.