[wp-trac] [WordPress Trac] #32877: Added filter in wp_get_attachment_image

WordPress Trac noreply at wordpress.org
Sun Jul 5 14:32:06 UTC 2015


#32877: Added filter in wp_get_attachment_image
--------------------------+------------------------------
 Reporter:  spacedmonkey  |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by ChriCo):

 This could be somehow lead to several problems for displaying the image.
 The {{{wp_get_attachment_image()}}} is used in backend on several pages
 such as the upload.php, post-new/post.php metabox for post thumbnail and
 in frontend e.G the default Gallery-Shortcode, {{{get_post_thumbnail()}}},
 {{{wp_get_attachment_link()}}}, ...

 If you have some specific output on your page, you can use the
 {{{wp_get_attachment_image_src()}}} to produce your own markup or just add
 {{{ echo '<div>' . wp_get_attachment_image( ... ) . '</div>';}}} to your
 output.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32877#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list