Make WordPress Core


Ignore:
Timestamp:
12/20/2014 10:46:53 PM (12 years ago)
Author:
wonderboymusic
Message:

For clarity, initialize some arrays that previously were only assigned via short circuit in loops.

See #30799.

File:
1 edited

Legend:

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

    r30674 r30982  
    587587        // get the best one for a specified set of dimensions
    588588        if ( is_array($size) && !empty($imagedata['sizes']) ) {
     589                $areas = array();
     590
    589591                foreach ( $imagedata['sizes'] as $_size => $data ) {
    590592                        // already cropped to width or height; so use this size
Note: See TracChangeset for help on using the changeset viewer.