Add attachment ID to the wp_generate_attachment_metadata filter, props taco1991, fixes #10494
git-svn-id: http://svn.automattic.com/wordpress/trunk@11747 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
06370d4f9e
commit
febbb3bbda
|
@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue