WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/15/2019 01:31:07 AM (8 months ago)
Author:
azaozz
Message:

After [45538]: fix a WPCS fix and make couple of var names consistent.

See #40439.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/image.php

    r45538 r45539  
    8888    // Meta error?
    8989    if ( empty( $image_meta ) ) {
    90         return $defined_sizes;
     90        return $registered_sizes;
    9191    }
    9292
     
    380380        $fallback_sizes = apply_filters( 'fallback_intermediate_image_sizes', $fallback_sizes, $metadata );
    381381
    382         $defined_sizes = wp_get_registered_image_subsizes();
    383         $merged_sizes  = array_intersect_key( $defined_sizes, array_flip( $fallback_sizes ) );
     382        $registered_sizes = wp_get_registered_image_subsizes();
     383        $merged_sizes     = array_intersect_key( $registered_sizes, array_flip( $fallback_sizes ) );
    384384
    385385        // Force thumbnails to be soft crops.
Note: See TracChangeset for help on using the changeset viewer.