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

WordPress Trac wp-trac at lists.automattic.com
Sun Aug 5 18:09:26 UTC 2012


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

Comment (by SergeyBiryukov):

 Looking at [attachment:media.php.patch], it seems weird that
 `wp_get_attachment_image_src` filter is not inside the
 `wp_get_attachment_image_src()` function.

 [attachment:20205.patch] adds `wp_get_attachment_image` filter.

 Given your use case, [attachment:post.php.patch] also makes sense to me.

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


More information about the wp-trac mailing list