From b310ef4a08f506e33913fca0584f6ce9c828e6a3 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Mon, 27 Jul 2009 23:08:21 +0000 Subject: [PATCH] Add attachment ID to the wp_generate_attachment_metadata filter, props taco1991, fixes #10494 git-svn-id: https://develop.svn.wordpress.org/trunk@11747 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/image.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/image.php b/wp-admin/includes/image.php index c0632ac5c2..1fff0f2e38 100644 --- a/wp-admin/includes/image.php +++ b/wp-admin/includes/image.php @@ -121,7 +121,7 @@ function wp_generate_attachment_metadata( $attachment_id, $file ) { } - return apply_filters( 'wp_generate_attachment_metadata', $metadata ); + return apply_filters( 'wp_generate_attachment_metadata', $metadata, $attachment_id ); } /**