Don't stomp existing sizes inside wp_save_image().
Merges [23246] to the 3.5 branch. props markoheijnen. see #22985. git-svn-id: http://core.svn.wordpress.org/branches/3.5@23342 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a8e00bfcaf
commit
887a4ade28
|
@ -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