[wp-trac] [WordPress Trac] #27573: Don't re-upload album covers that already exist

WordPress Trac noreply at wordpress.org
Sun Mar 30 20:53:23 UTC 2014


#27573: Don't re-upload album covers that already exist
----------------------------+-----------------------------
 Reporter:  wonderboymusic  |       Owner:  wonderboymusic
     Type:  enhancement     |      Status:  closed
 Priority:  normal          |   Milestone:  3.9
Component:  Media           |     Version:  trunk
 Severity:  normal          |  Resolution:  fixed
 Keywords:  has-patch       |     Focuses:
----------------------------+-----------------------------
Changes (by wonderboymusic):

 * owner:   => wonderboymusic
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"27863"]:
 {{{
 #!CommitTicketReference repository="" revision="27863"
 In `wp_generate_attachment_metadata()`, when an audio or video files
 contains upload-able image bits in its ID3 tags, only upload it if the
 image has not already been uploaded. Determine this by checking for a
 `_cover_hash` value in post meta that matches the `md5` representation of
 the bits.

 This prevents uploading an album of 10 songs and subsequently uploading 10
 copies of the same album cover.

 Props GregLone for the new filter/filter docs:
 `'attachment_thumbnail_args'`.
 Fixes #27573.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27573#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list