[wp-trac] [WordPress Trac] #20205: move image_downsize filter to beginning of image_downsize() function

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 14 00:33:54 UTC 2012


#20205: move image_downsize filter to beginning of image_downsize() function
----------------------------+------------------------------
 Reporter:  helgatheviking  |       Owner:
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Media           |     Version:  3.4
 Severity:  normal          |  Resolution:
 Keywords:                  |
----------------------------+------------------------------
Changes (by jfarthing84):

 * cc: jeff@… (added)


Comment:

 +1 for this.

 There are many different ways to tackle this issue. Whether it be through
 wp_get_attachment_image(), wp_get_attachment_image_src() or
 image_downsize(). They are all called successively.

 I believe a simple new filter on wp_get_attachment_image_src() within
 wp_get_attachment_image() should work.

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


More information about the wp-trac mailing list