WordPress.org

Make WordPress Core

Ticket #22985: 22985.diff

File 22985.diff, 529 bytes (added by markoheijnen, 6 years ago)

using array_merge() inside wp_save_image()

  • wp-admin/includes/image-edit.php

     
    692692                        $_sizes[ $size ] = array( 'width' => get_option("{$size}_size_w"), 'height' => get_option("{$size}_size_h"), 'crop' => $crop );
    693693                }
    694694
    695                 $meta['sizes'] = $img->multi_resize( $_sizes );
     695                $meta['sizes'] = array_merge( $meta['sizes'], $img->multi_resize( $_sizes ) );
    696696        }
    697697
    698698        unset( $img );