Media: fix indentation for media.php.

Follow up to r59844.

Props: mukesh27.

See #62900.


Built from https://develop.svn.wordpress.org/trunk@59845


git-svn-id: http://core.svn.wordpress.org/trunk@59187 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Adam Silverstein 2025-02-20 07:24:16 +00:00
parent da8f997ab6
commit d9e9011369
2 changed files with 5 additions and 6 deletions

View File

@ -368,17 +368,16 @@ function wp_create_image_subsizes( $file, $attachment_id ) {
// TODO: Log errors.
}
} elseif ( ! empty( $exif_meta['orientation'] ) && 1 !== (int) $exif_meta['orientation'] ) {
// Rotate the whole original image if there is EXIF data and "orientation" is not 1.
$editor = wp_get_image_editor( $file );
// Rotate the whole original image if there is EXIF data and "orientation" is not 1.
$editor = wp_get_image_editor( $file );
if ( is_wp_error( $editor ) ) {
// This image cannot be edited.
return $image_meta;
}
// Rotate the image.
$rotated = $editor->maybe_exif_rotate();
// Rotate the image.
$rotated = $editor->maybe_exif_rotate();
if ( true === $rotated ) {
// Append `-rotated` to the image file name.

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.8-alpha-59844';
$wp_version = '6.8-alpha-59845';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.