Skip to content

Commit b60e965

Browse files
Media: fix indentation for media.php.
Follow up to r59844. Props: mukesh27. See #62900. git-svn-id: https://develop.svn.wordpress.org/trunk@59845 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 7daa963 commit b60e965

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/wp-admin/includes/image.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -368,17 +368,16 @@ function wp_create_image_subsizes( $file, $attachment_id ) {
368368
// TODO: Log errors.
369369
}
370370
} 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 );
374373

375374
if ( is_wp_error( $editor ) ) {
376375
// This image cannot be edited.
377376
return $image_meta;
378377
}
379378

380-
// Rotate the image.
381-
$rotated = $editor->maybe_exif_rotate();
379+
// Rotate the image.
380+
$rotated = $editor->maybe_exif_rotate();
382381

383382
if ( true === $rotated ) {
384383
// Append `-rotated` to the image file name.

0 commit comments

Comments
 (0)