Wordpress++
This commit is contained in:
1 parent
790f1487a2
commit
3f49ab1747
610 files changed
+58979
-36562
No files matched your search
@@ -67,6 +67,8 @@ function wp_crop_image( $src, $src_x, $src_y, $src_w, $src_h, $dst_w, $dst_h, $s
|
||||
*
|
||||
* @since 2.1.0
|
||||
*
|
||||
* @global array $_wp_additional_image_sizes
|
||||
*
|
||||
* @param int $attachment_id Attachment Id to process.
|
||||
* @param string $file Filepath of the Attached image.
|
||||
* @return mixed Metadata for attachment.
|
||||
@@ -190,8 +192,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