From a6c33c8a3b8d0ba893c3bf4ddfb1470480212586 Mon Sep 17 00:00:00 2001 From: Adam Silverstein Date: Tue, 7 Mar 2023 04:47:22 +0000 Subject: [PATCH] Media: improve display of cropped image in media editor. Correctly display edits after you crop an image and return to the attachments page. Prefer the `full` over the `large` size image on the edit image screen. Props andy786, antpb, sanketchodavadiya, antonvlasenko, ironprogrammer. Fixes #55070. Built from https://develop.svn.wordpress.org/trunk@55470 git-svn-id: http://core.svn.wordpress.org/trunk@55003 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/media-template.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/media-template.php b/wp-includes/media-template.php index 10598187d1..7656d253ef 100644 --- a/wp-includes/media-template.php +++ b/wp-includes/media-template.php @@ -377,10 +377,10 @@ function wp_print_media_templates() {
<# if ( data.uploading ) { #>
- <# } else if ( data.sizes && data.sizes.large ) { #> - <# } else if ( data.sizes && data.sizes.full ) { #> + <# } else if ( data.sizes && data.sizes.large ) { #> + <# } else if ( -1 === jQuery.inArray( data.type, [ 'audio', 'video' ] ) ) { #> <# } #> diff --git a/wp-includes/version.php b/wp-includes/version.php index 1dc96f0435..a4a5b1cae4 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-beta4-55469'; +$wp_version = '6.2-beta4-55470'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.