From d9e901136993615da24184114d845cd6776e75dc Mon Sep 17 00:00:00 2001 From: Adam Silverstein Date: Thu, 20 Feb 2025 07:24:16 +0000 Subject: [PATCH] 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 --- wp-admin/includes/image.php | 9 ++++----- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/wp-admin/includes/image.php b/wp-admin/includes/image.php index 78d5adc7e0..bb70b27787 100644 --- a/wp-admin/includes/image.php +++ b/wp-admin/includes/image.php @@ -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. diff --git a/wp-includes/version.php b/wp-includes/version.php index f01a804f46..a137cd837a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.