Ticket #25170: 25170.diff
File 25170.diff, 626 bytes (added by , 11 years ago) |
---|
-
src/wp-admin/includes/media.php
2451 2451 </div> 2452 2452 2453 2453 <?php 2454 $file = get_attached_file( $post->ID ); 2455 2454 2456 if ( isset( $meta['filesize'] ) ) 2455 2457 $file_size = $meta['filesize']; 2458 elseif ( file_exists( $file ) ) 2459 $file_size = filesize( $file ); 2456 2460 else 2457 $file_size = filesize( get_attached_file( $post->ID ) );2461 $file_size = ''; 2458 2462 2459 2463 if ( ! empty( $file_size ) ) : ?> 2460 2464 <div class="misc-pub-section misc-pub-filesize">