[wp-trac] [WordPress Trac] #16391: Don't add empty "_wp_attachment_metadata" on non-image media files

WordPress Trac wp-trac at lists.automattic.com
Tue Sep 18 23:02:24 UTC 2012


#16391: Don't add empty "_wp_attachment_metadata" on non-image media files
-------------------------+--------------------
 Reporter:  Caspie       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  3.5
Component:  Media        |     Version:  3.0.1
 Severity:  minor        |  Resolution:
 Keywords:  needs-patch  |
-------------------------+--------------------
Changes (by nacin):

 * keywords:  has-patch commit => needs-patch
 * type:  defect (bug) => enhancement


Comment:

 When updating an attachment with empty file or data after it previously
 had a meta value for _wp_attached_file or _wp_attachment_metadata, the
 data would not get cleared.

 The options are either not applying this patch, or doing if ( $date )
 update; else delete;

 I no longer consider this a pure bug.

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


More information about the wp-trac mailing list