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

WordPress Trac noreply at wordpress.org
Tue Feb 19 17:48:01 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 doublesharp):

 I still feel that filtering the `wp_get_attachment_image_src()` function
 is a better choice, as it is used by `wp_get_attachment_image()`,
 otherwise you will get different results if you have only filtered the
 latter but also need access to the image URI.

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


More information about the wp-trac mailing list