diff --git src/wp-admin/includes/image.php src/wp-admin/includes/image.php
index 3fe8cc8..2ba9135 100644
|
|
function wp_generate_attachment_metadata( $attachment_id, $file ) { |
130 | 130 | * |
131 | 131 | * @since 2.9.0 |
132 | 132 | * @since 4.4.0 Added the `$metadata` argument. |
| 133 | * @since 5.0 Added the `$attachment_id` argument. |
133 | 134 | * |
134 | 135 | * @param array $sizes An associative array of image sizes. |
135 | 136 | * @param array $metadata An associative array of image metadata: width, height, file. |
| 137 | * @param int $attachment_id Current attachment ID. |
136 | 138 | */ |
137 | | $sizes = apply_filters( 'intermediate_image_sizes_advanced', $sizes, $metadata ); |
| 139 | $sizes = apply_filters( 'intermediate_image_sizes_advanced', $sizes, $metadata, $attachment_id ); |
138 | 140 | |
139 | 141 | if ( $sizes ) { |
140 | 142 | $editor = wp_get_image_editor( $file ); |