Make WordPress Core

Ticket #39667: 39667-1.diff

File 39667-1.diff, 1.1 KB (added by milindmore22, 8 years ago)

Patch will add units to media modal box

  • src/wp-includes/media-template.php

    diff --git src/wp-includes/media-template.php src/wp-includes/media-template.php
    index 5246350..89afcf1 100644
    function wp_print_media_templates() { 
    344344                                <div class="file-size"><strong><?php _e( 'File size:' ); ?></strong> {{ data.filesizeHumanReadable }}</div>
    345345                                <# if ( 'image' === data.type && ! data.uploading ) { #>
    346346                                        <# if ( data.width && data.height ) { #>
    347                                                 <div class="dimensions"><strong><?php _e( 'Dimensions:' ); ?></strong> {{ data.width }} &times; {{ data.height }}</div>
     347                                                <div class="dimensions"><strong><?php _e( 'Dimensions:' ); ?></strong> {{ data.width }} &times; {{ data.height }}&nbsp;px</div>
    348348                                        <# } #>
    349349                                <# } #>
    350350
    351351                                <# if ( data.fileLength ) { #>
    352                                         <div class="file-length"><strong><?php _e( 'Length:' ); ?></strong> {{ data.fileLength }}</div>
     352                                        <div class="file-length"><strong><?php _e( 'Length:' ); ?></strong> {{ data.fileLength }}&nbsp;min</div>
    353353                                <# } #>
    354354
    355355                                <# if ( 'audio' === data.type && data.meta.bitrate ) { #>