mirror of
git://develop.git.wordpress.org/
synced 2025-03-20 12:00:03 +01:00
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
This commit is contained in:
parent
7daa963e80
commit
b60e96591a
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user