WordPress.org

Make WordPress Core

Ticket #23710: 23710.1.patch

File 23710.1.patch, 519 bytes (added by danielbachhuber, 5 years ago)

Declare the variable before using it

  • wp-admin/includes/image.php

     
    8484                // make thumbnails and other intermediate sizes
    8585                global $_wp_additional_image_sizes;
    8686
     87                $sizes = array();
    8788                foreach ( get_intermediate_image_sizes() as $s ) {
    8889                        $sizes[$s] = array( 'width' => '', 'height' => '', 'crop' => false );
    8990                        if ( isset( $_wp_additional_image_sizes[$s]['width'] ) )