Ticket #25170: 25170.2.patch
File 25170.2.patch, 704 bytes (added by , 11 years ago) |
---|
-
wp-admin/includes/media.php
2448 2448 echo strtoupper( str_replace( 'image/', '', $post->post_mime_type ) ); 2449 2449 ?></strong> 2450 2450 </div> 2451 <div class="misc-pub-section misc-pub-filesize"> 2452 <?php _e( 'File size:' ); ?> <strong><?php 2451 2453 2454 if ( isset( $meta['filesize'] ) ) 2455 $file_size = $meta['filesize']; 2456 else 2457 $file_size = filesize( get_attached_file( $post->ID ) ); 2458 2459 echo size_format( $file_size ); 2460 ?></strong> 2461 </div> 2462 2452 2463 <?php 2453 2464 if ( preg_match( '#^audio|video#', $post->post_mime_type ) ): 2454 2465