Make WordPress Core

Ticket #55443: 55443-misnamed-variable.diff

File 55443-misnamed-variable.diff, 762 bytes (added by adamsilverstein, 2 years ago)
  • src/wp-admin/includes/image.php

    diff --git src/wp-admin/includes/image.php src/wp-admin/includes/image.php
    index 53848e4f41..a99dddddad 100644
    function _wp_make_subsizes( $new_sizes, $file, $image_meta, $attachment_id, $mim 
    631631                                if ( ! isset( $image_meta['sizes'][ $created_size_name ]['sources'] ) ) {
    632632                                        $image_meta['sizes'][ $created_size_name ]['sources'] = array();
    633633                                }
    634                                 $image_meta['sizes'][ $created_size_name ]['sources'][ $mime_type ] = _wp_get_sources_from_meta( $new_size_meta );
     634                                $image_meta['sizes'][ $created_size_name ]['sources'][ $mime_type ] = _wp_get_sources_from_meta( $created_size_meta );
    635635                        }
    636636                        wp_update_attachment_metadata( $attachment_id, $image_meta );
    637637                }