WordPress.org

Make WordPress Core

Ticket #36256: 36256.diff

File 36256.diff, 1.1 KB (added by celloexpressions, 6 years ago)

Use full image size in the Customizer for cropped image controls.

  • src/wp-includes/customize/class-wp-customize-media-control.php

     
    158158                                <div class="container">
    159159                                        <div class="attachment-media-view attachment-media-view-{{ data.attachment.type }} {{ data.attachment.orientation }}">
    160160                                                <div class="thumbnail thumbnail-{{ data.attachment.type }}">
    161                                                         <# if ( 'image' === data.attachment.type && data.attachment.sizes && data.attachment.sizes.medium ) { #>
     161                                                        <# if ( 'image' === data.attachment.type && data.attachment.sizes && data.attachment.sizes.medium && 'cropped_image' !== data.type ) { #>
    162162                                                                <img class="attachment-thumb" src="{{ data.attachment.sizes.medium.url }}" draggable="false" alt="" />
    163163                                                        <# } else if ( 'image' === data.attachment.type && data.attachment.sizes && data.attachment.sizes.full ) { #>
    164164                                                                <img class="attachment-thumb" src="{{ data.attachment.sizes.full.url }}" draggable="false" alt="" />