[wp-trac] [WordPress Trac] #20948: Unnecessary post type check in wp_get_attachment_url
WordPress Trac
noreply at wordpress.org
Sun Dec 16 12:39:35 UTC 2012
#20948: Unnecessary post type check in wp_get_attachment_url
------------------------------------+------------------------------
Reporter: jfarthing84 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 3.4
Severity: normal | Resolution:
Keywords: dev-feedback has-patch |
------------------------------------+------------------------------
Comment (by jfarthing84):
I just don't like the idea of needing two rows in the database per each
upload. That's really not needed. Of course, I could also just write my
own versions of the WP attachment functions, but that is not really needed
also. The image_downsize function provides a handy filter before it runs,
allowing plugins to short-circuit it and return their own image. Perhaps
something like this can be added there instead?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20948#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list