Ticket #38717: 38717.diff
File 38717.diff, 1.3 KB (added by , 4 years ago) |
---|
-
src/wp-admin/css/media.css
769 769 770 770 .edit-attachment-frame .attachment-media-view .details-image { 771 771 display: block; 772 margin -bottom:16px;772 margin: 0 auto 16px; 773 773 max-width: 100%; 774 774 max-height: 90%; 775 775 max-height: -webkit-calc( 100% - 42px ); … … 776 776 max-height: calc( 100% - 42px ); /* leave space for actions underneath */ 777 777 } 778 778 779 .edit-attachment-frame .attachment-media-view .attachment-actions { 780 text-align: center; 781 } 782 779 783 .edit-attachment-frame .wp-media-wrapper { 780 784 margin-bottom: 12px; 781 785 } -
src/wp-includes/media-template.php
325 325 <div class="attachment-actions"> 326 326 <# if ( 'image' === data.type && ! data.uploading && data.sizes && data.can.save ) { #> 327 327 <button type="button" class="button edit-attachment"><?php _e( 'Edit Image' ); ?></button> 328 <# } else if ( 'pdf' === data.subtype && data.sizes ) { #> 329 <?php _e( 'Thumbnail Preview' ); ?> 328 330 <# } #> 329 331 </div> 330 332 </div>