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
This commit is contained in:
parent
eb4b483e8b
commit
b310ef4a08
@ -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
Block a user