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

WordPress Trac noreply at wordpress.org
Sun Mar 30 20:40:41 UTC 2014


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

Comment (by nacin):

 Rather than `'meta_query' => array( array( 'key' => $hash ) )` we can use
 `'meta_key' => $hash`. That said, I don't really like the idea of an
 unprefixed md5 hash meta key floating around in the metadata table. This
 is a situation ripe for `'meta_key' => '_album_cover_hash', 'meta_value'
 => $hash`. Speed is not super-essential here and it is hardly the first
 barebones meta key/value query we do in the admin.

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


More information about the wp-trac mailing list