File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments