WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #49640


Ignore:
Timestamp:
03/13/2020 05:20:32 PM (21 months ago)
Author:
SergeyBiryukov
Comment:

Hi there, welcome back to WordPress Trac! Thanks for the report.

Just adding links to some tickets that might be related: #21714, #34384, #47713.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #49640

    • Property Component changed from General to Media
  • Ticket #49640 – Description

    initial v1  
    1414
    1515https://github.com/WordPress/WordPress/blob/46674e2367b8ca0c15b859bd578bc2119bfa0150/wp-includes/media.php#L780
    16 ```
     16{{{
    1717// If there's an exact match to an existing image size, short circuit.
    1818if ( intval( $data['width'] ) === intval( $size[0] ) && intval( $data['height'] ) === intval( $size[1] ) ) {
     
    2121}
    2222
    23 ```
     23}}}
    2424
    2525So `$data['width'] =` each image sizes width and `$size[0] = '1x1-large'`