Changeset 58692
- Timestamp:
- 07/09/2024 01:05:25 PM (4 weeks ago)
- Location:
- branches/6.6
- Files:
-
- 3 edited
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 -
branches/6.6/tests/phpunit/tests/rest-api/rest-attachments-controller.php
r58457 r58692 2383 2383 2384 2384 /** 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2385 2422 * @ticket 44405 2386 2423 * @requires function imagejpeg
Note: See TracChangeset
for help on using the changeset viewer.