mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
When calling unset(), it is unnecessary to immediately precede it with a call to isset().
See #32444. git-svn-id: https://develop.svn.wordpress.org/trunk@32545 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -190,8 +190,7 @@ function wp_generate_attachment_metadata( $attachment_id, $file ) {
|
||||
}
|
||||
|
||||
// Remove the blob of binary data from the array.
|
||||
if ( isset( $metadata['image']['data'] ) )
|
||||
unset( $metadata['image']['data'] );
|
||||
unset( $metadata['image']['data'] );
|
||||
|
||||
/**
|
||||
* Filter the generated attachment meta data.
|
||||
|
||||
Reference in New Issue
Block a user