Changeset 34258
- Timestamp:
- 09/17/2015 05:02:52 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r34163 r34258 2779 2779 2780 2780 $attached_file = get_attached_file( $attachment->ID ); 2781 if ( file_exists( $attached_file ) ) { 2781 2782 if ( isset( $meta['filesize'] ) ) { 2783 $bytes = $meta['filesize']; 2784 } elseif ( file_exists( $attached_file ) ) { 2782 2785 $bytes = filesize( $attached_file ); 2786 } else { 2787 $bytes = ''; 2788 } 2789 2790 if ( $bytes ) { 2783 2791 $response['filesizeInBytes'] = $bytes; 2784 2792 $response['filesizeHumanReadable'] = size_format( $bytes );
Note: See TracChangeset
for help on using the changeset viewer.