mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Media: correct a misnamed variable when creating sub sizes with multi_resize.
Props mehulkaklotar, mukesh27. See #55443. git-svn-id: https://develop.svn.wordpress.org/trunk@53847 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
beabd7a8fb
commit
2615c4dc0c
@ -631,7 +631,7 @@ function _wp_make_subsizes( $new_sizes, $file, $image_meta, $attachment_id, $mim
|
||||
if ( ! isset( $image_meta['sizes'][ $created_size_name ]['sources'] ) ) {
|
||||
$image_meta['sizes'][ $created_size_name ]['sources'] = array();
|
||||
}
|
||||
$image_meta['sizes'][ $created_size_name ]['sources'][ $mime_type ] = _wp_get_sources_from_meta( $new_size_meta );
|
||||
$image_meta['sizes'][ $created_size_name ]['sources'][ $mime_type ] = _wp_get_sources_from_meta( $created_size_meta );
|
||||
}
|
||||
wp_update_attachment_metadata( $attachment_id, $image_meta );
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user