Add jshintrc to qunit.
props jorbin. see #25187. Built from https://develop.svn.wordpress.org/trunk@25992 git-svn-id: http://core.svn.wordpress.org/trunk@25925 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -150,8 +150,10 @@ function wp_generate_attachment_metadata( $attachment_id, $file ) {
|
||||
update_post_meta( $attachment_id, '_thumbnail_id', $sub_attachment_id );
|
||||
}
|
||||
}
|
||||
|
||||
// remove the blob of binary data from the array
|
||||
unset( $metadata['image']['data'] );
|
||||
if ( isset( $metadata['image']['data'] ) )
|
||||
unset( $metadata['image']['data'] );
|
||||
|
||||
return apply_filters( 'wp_generate_attachment_metadata', $metadata, $attachment_id );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user