Changes between Initial Version and Version 1 of Ticket #49640
- Timestamp:
- 03/13/2020 05:20:32 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #49640
-
Property
Component
changed from
General
toMedia
-
Property
Component
changed from
-
Ticket #49640 – Description
initial v1 14 14 15 15 https://github.com/WordPress/WordPress/blob/46674e2367b8ca0c15b859bd578bc2119bfa0150/wp-includes/media.php#L780 16 ``` 16 {{{ 17 17 // If there's an exact match to an existing image size, short circuit. 18 18 if ( intval( $data['width'] ) === intval( $size[0] ) && intval( $data['height'] ) === intval( $size[1] ) ) { … … 21 21 } 22 22 23 ``` 23 }}} 24 24 25 25 So `$data['width'] =` each image sizes width and `$size[0] = '1x1-large'`