mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Don't stomp existing sizes inside wp_save_image().
props markoheijnen. see #22985. for trunk. git-svn-id: https://develop.svn.wordpress.org/trunk@23246 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7fc8feabae
commit
6e9830f34d
@ -692,7 +692,7 @@ function wp_save_image( $post_id ) {
|
||||
$_sizes[ $size ] = array( 'width' => get_option("{$size}_size_w"), 'height' => get_option("{$size}_size_h"), 'crop' => $crop );
|
||||
}
|
||||
|
||||
$meta['sizes'] = $img->multi_resize( $_sizes );
|
||||
$meta['sizes'] = array_merge( $meta['sizes'], $img->multi_resize( $_sizes ) );
|
||||
}
|
||||
|
||||
unset( $img );
|
||||
|
||||
Loading…
Reference in New Issue
Block a user