[wp-trac] [WordPress Trac] #25170: Add actual file size to attachment publish meta box

WordPress Trac noreply at wordpress.org
Tue Sep 24 19:40:53 UTC 2013


#25170: Add actual file size to attachment publish meta box
-------------------------+-----------------------
 Reporter:  desrosj      |       Owner:  helen
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:  3.7
Component:  Media        |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+-----------------------

Comment (by DrewAPicture):

 The case for comment:14 was that I have a media item where the source file
 doesn't actually exist anymore. The file meta is stored with the media
 item and `get_attached_file()` still returns the path to the nonexistent
 file, which in-turn causes `filesize()` to toss a warning.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25170#comment:16>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list