Ticket #24716: 24716.3.patch
File 24716.3.patch, 609 bytes (added by , 11 years ago) |
---|
-
src/wp-includes/media.php
2601 2601 $response['uploadedToTitle'] = $post_parent->post_title ? $post_parent->post_title : __( '(No title)' ); 2602 2602 } 2603 2603 2604 $bytes = filesize( get_attached_file( $attachment->ID ) ); 2604 $file = get_attached_file( $attachment->ID ); 2605 $bytes = ( file_exists( $file ) ) ? filesize( $file ) : 0; 2605 2606 $response['filesizeInBytes'] = $bytes; 2606 2607 $response['filesizeHumanReadable'] = size_format( $bytes ); 2607 2608