From 6bee5769cba6b6f0a13b3bba9be6d14186934bfc Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 9 Jul 2019 21:04:41 +0000 Subject: [PATCH] Coding Standards: Remove extra whitespace in `wp-admin/includes/image-edit.php`. See #47632. git-svn-id: https://develop.svn.wordpress.org/trunk@45616 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/image-edit.php | 38 ++++++++++++++-------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/wp-admin/includes/image-edit.php b/src/wp-admin/includes/image-edit.php index 58303eff78..95a97232f2 100644 --- a/src/wp-admin/includes/image-edit.php +++ b/src/wp-admin/includes/image-edit.php @@ -190,26 +190,26 @@ function wp_image_editor( $post_id, $msg = false ) {
- get_post_mime_type( $post_id ), - 'methods' => array( 'rotate' ), - ) - ) ) { - $note_no_rotate = ''; - ?> - - - ' . __( 'Image rotation is not supported by your web host.' ) . '

'; - ?> - - - + // On some setups GD library does not provide imagerotate() - Ticket #11536 + if ( wp_image_editor_supports( + array( + 'mime_type' => get_post_mime_type( $post_id ), + 'methods' => array( 'rotate' ), + ) + ) ) { + $note_no_rotate = ''; + ?> + + + ' . __( 'Image rotation is not supported by your web host.' ) . '

'; + ?> + + +