Changeset 58692 for branches/6.6/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
- Timestamp:
- 07/09/2024 01:05:25 PM (17 months ago)
- Location:
- branches/6.6
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/6.6
-
branches/6.6/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
r58457 r58692 627 627 $height = (int) round( ( $size['height'] * $args['height'] ) / 100.0 ); 628 628 629 if ( $size['width'] !== $width &&$size['height'] !== $height ) {629 if ( $size['width'] !== $width || $size['height'] !== $height ) { 630 630 $result = $image_editor->crop( $crop_x, $crop_y, $width, $height ); 631 631
Note: See TracChangeset
for help on using the changeset viewer.