[wp-trac] [WordPress Trac] #27573: Don't re-upload album covers that already exist
WordPress Trac
noreply at wordpress.org
Sat Mar 29 22:23:13 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 wonderboymusic):
[attachment:27573.2.diff 27573.2.diff] implements this by using
`get_posts()` and a key-only `meta_query`. Both patches' queries are sub-
millisecond. This one is probably preferable because it uses more API and
no direct SQL. This code will hardly ever run, so speed arguments may be
moot.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27573#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list