From 6028b6f9f8040bd1e9697fec16169d47bdf8db96 Mon Sep 17 00:00:00 2001 From: Joe Dolson Date: Fri, 21 Jul 2023 14:31:06 +0000 Subject: [PATCH] Media: Fix height max value in image scaling. Set the `max` attribute in the height input for image scaling to reference the image height, instead of the width. Follow up to [55919]. Props costdev, joedolson, joemcgill. Fixes #50523. git-svn-id: https://develop.svn.wordpress.org/trunk@56277 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/image-edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/image-edit.php b/src/wp-admin/includes/image-edit.php index e85816bd41..72a6d07c01 100644 --- a/src/wp-admin/includes/image-edit.php +++ b/src/wp-admin/includes/image-edit.php @@ -156,7 +156,7 @@ function wp_image_editor( $post_id, $msg = false ) { - +