Ticket #33386: 33386.2.diff
| File 33386.2.diff, 671 bytes (added by , 10 years ago) |
|---|
-
src/wp-admin/includes/media.php
2787 2787 function attachment_submitbox_metadata() { 2788 2788 $post = get_post(); 2789 2789 2790 $filename = esc_html( wp_basename( $post->guid ) ); 2790 $file = get_attached_file( $post->ID ); 2791 $filename = esc_html( wp_basename( $file ) ); 2791 2792 2792 2793 $media_dims = ''; 2793 2794 $meta = wp_get_attachment_metadata( $post->ID ); … … 2822 2823 </div> 2823 2824 2824 2825 <?php 2825 $file = get_attached_file( $post->ID );2826 2826 $file_size = false; 2827 2827 2828 2828 if ( isset( $meta['filesize'] ) )