From fa0969d06a2e0178c780143a5ac2ec7ea03bb216 Mon Sep 17 00:00:00 2001 From: Joe Dolson Date: Thu, 21 Sep 2023 18:02:22 +0000 Subject: [PATCH] Coding Standards: Remove unused variable `el` in monitorPopup. Remove an unused variable to resolves coding standards failure. Follow up to [56651]. Props joedolson. See #58756. git-svn-id: https://develop.svn.wordpress.org/trunk@56653 602fd350-edb4-49c9-b593-d223f7449a82 --- src/js/_enqueues/lib/image-edit.js | 3 +-- src/wp-admin/includes/image-edit.php | 12 ++++++------ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/js/_enqueues/lib/image-edit.js b/src/js/_enqueues/lib/image-edit.js index 3afbcdc812..b41e93f55d 100644 --- a/src/js/_enqueues/lib/image-edit.js +++ b/src/js/_enqueues/lib/image-edit.js @@ -255,8 +255,7 @@ * * @return {boolean} Always returns false. */ - monitorPopup : function(el) { - var $el = $( el ); + monitorPopup : function() { var $parent = document.querySelector( '.imgedit-rotate-menu-container' ); var $toggle = document.querySelector( '.imgedit-rotate-menu-container .imgedit-rotate' ); diff --git a/src/wp-admin/includes/image-edit.php b/src/wp-admin/includes/image-edit.php index 5c0d3d7f39..739b09f9a1 100644 --- a/src/wp-admin/includes/image-edit.php +++ b/src/wp-admin/includes/image-edit.php @@ -63,7 +63,7 @@ function wp_image_editor( $post_id, $msg = false ) {
- +
- - - + + + ' . __( 'Image rotation is not supported by your web host.' ) . '

'; @@ -88,8 +88,8 @@ function wp_image_editor( $post_id, $msg = false ) { } ?>
- - + +