From 9a5f538153be64fd6d3dbbda1c99e2e06a150247 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 9 Jul 2019 21:05:57 +0000 Subject: [PATCH] Coding Standards: Remove extra whitespace in `wp-admin/includes/image-edit.php`. See #47632. Built from https://develop.svn.wordpress.org/trunk@45616 git-svn-id: http://core.svn.wordpress.org/trunk@45427 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/image-edit.php | 38 ++++++++++++++++---------------- wp-includes/version.php | 2 +- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/wp-admin/includes/image-edit.php b/wp-admin/includes/image-edit.php index 58303eff78..95a97232f2 100644 --- a/wp-admin/includes/image-edit.php +++ b/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.' ) . '

'; + ?> + + + diff --git a/wp-includes/version.php b/wp-includes/version.php index ea7418b890..aa8ece6f7f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-alpha-45615'; +$wp_version = '5.3-alpha-45616'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.