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
This commit is contained in:
parent
39308664bf
commit
a6c33c8a3b
|
@ -377,10 +377,10 @@ function wp_print_media_templates() {
|
|||
<div class="thumbnail thumbnail-{{ data.type }}">
|
||||
<# if ( data.uploading ) { #>
|
||||
<div class="media-progress-bar"><div></div></div>
|
||||
<# } else if ( data.sizes && data.sizes.large ) { #>
|
||||
<img class="details-image" src="{{ data.sizes.large.url }}" draggable="false" alt="" />
|
||||
<# } else if ( data.sizes && data.sizes.full ) { #>
|
||||
<img class="details-image" src="{{ data.sizes.full.url }}" draggable="false" alt="" />
|
||||
<# } else if ( data.sizes && data.sizes.large ) { #>
|
||||
<img class="details-image" src="{{ data.sizes.large.url }}" draggable="false" alt="" />
|
||||
<# } else if ( -1 === jQuery.inArray( data.type, [ 'audio', 'video' ] ) ) { #>
|
||||
<img class="details-image icon" src="{{ data.icon }}" draggable="false" alt="" />
|
||||
<# } #>
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue