Changeset 25608
- Timestamp:
- 09/24/2013 08:22:24 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/media.php
r25403 r25608 2452 2452 2453 2453 <?php 2454 $file = get_attached_file( $post->ID ); 2455 $file_size = false; 2456 2454 2457 if ( isset( $meta['filesize'] ) ) 2455 2458 $file_size = $meta['filesize']; 2456 else 2457 $file_size = filesize( get_attached_file( $post->ID ));2459 elseif ( file_exists( $file ) ) 2460 $file_size = filesize( $file ); 2458 2461 2459 2462 if ( ! empty( $file_size ) ) : ?>
Note: See TracChangeset
for help on using the changeset viewer.