Changeset 59845
- Timestamp:
- 02/20/2025 07:22:20 AM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/image.php
r59844 r59845 369 369 } 370 370 } elseif ( ! empty( $exif_meta['orientation'] ) && 1 !== (int) $exif_meta['orientation'] ) { 371 // Rotate the whole original image if there is EXIF data and "orientation" is not 1. 372 373 $editor = wp_get_image_editor( $file ); 371 // Rotate the whole original image if there is EXIF data and "orientation" is not 1. 372 $editor = wp_get_image_editor( $file ); 374 373 375 374 if ( is_wp_error( $editor ) ) { … … 378 377 } 379 378 380 381 379 // Rotate the image. 380 $rotated = $editor->maybe_exif_rotate(); 382 381 383 382 if ( true === $rotated ) {
Note: See TracChangeset
for help on using the changeset viewer.