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:
Andrew Nacin
2013-10-30 14:39:10 +00:00
parent 26d4fdf58d
commit d0cfa40983
56 changed files with 1396 additions and 504 deletions

View File

@@ -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 );
}