Changeset 28959
- Timestamp:
- 07/02/2014 02:36:29 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r28923 r28959 2632 2632 } 2633 2633 2634 $bytes = filesize( get_attached_file( $attachment->ID ) ); 2635 $response['filesizeInBytes'] = $bytes; 2636 $response['filesizeHumanReadable'] = size_format( $bytes ); 2634 $attached_file = get_attached_file( $attachment->ID ); 2635 if ( file_exists( $attached_file ) ) { 2636 $bytes = filesize( $attached_file ); 2637 $response['filesizeInBytes'] = $bytes; 2638 $response['filesizeHumanReadable'] = size_format( $bytes ); 2639 } 2637 2640 2638 2641 if ( current_user_can( 'edit_post', $attachment->ID ) ) {
Note: See TracChangeset
for help on using the changeset viewer.