WordPress.org

Make WordPress Core

Ticket #43226: 43226.diff

File 43226.diff, 537 bytes (added by chetan200891, 22 months ago)
  • src/wp-admin/includes/image.php

    diff --git a/src/wp-admin/includes/image.php b/src/wp-admin/includes/image.php
    index 0f03e2c..6f5c472 100644
    a b function wp_generate_attachment_metadata( $attachment_id, $file ) { 
    253253                                $sizes[ $s ]['crop'] = $_wp_additional_image_sizes[ $s ]['crop'];
    254254                        } else {
    255255                                // Force thumbnails to be soft crops.
    256                                 if ( ! 'thumbnail' === $s ) {
     256                                if ( 'thumbnail' !== $s ) {
    257257                                        $sizes[ $s ]['crop'] = get_option( "{$s}_crop" );
    258258                                }
    259259                        }