[wp-trac] [WordPress Trac] #20205: Add the ability to filter wp_get_attachment_image()

WordPress Trac noreply at wordpress.org
Tue Feb 19 18:12:28 UTC 2013


#20205: Add the ability to filter wp_get_attachment_image()
------------------------------------+------------------
 Reporter:  helgatheviking          |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  3.6
Component:  Media                   |     Version:  3.4
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |
------------------------------------+------------------

Comment (by jfarthing84):

 >The problem what I have with filtering wp_get_attachment_image_src() is
 the array output. I guess we should rewrite the function so you can
 manipulate the $src. I will give it a try now.

 What's wrong with passing the whole array into the filter, as I did in the
 patch I just posted? If you change the image source, the dimensions are
 more than likely different as well and should be changed just the same.

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


More information about the wp-trac mailing list