Make WordPress Core


Ignore:
Timestamp:
08/05/2022 06:56:25 PM (2 years ago)
Author:
adamsilverstein
Message:

Media: correct a misnamed variable when creating sub sizes with multi_resize.

Props mehulkaklotar, mukesh27.
See #55443.

File:
1 edited

Legend:

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

    r53845 r53847  
    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 );
Note: See TracChangeset for help on using the changeset viewer.