[wp-trac] [WordPress Trac] #27399: Filter the HTML output of wp_get_attachment_image

WordPress Trac noreply at wordpress.org
Mon Oct 23 15:58:48 UTC 2017


#27399: Filter the HTML output of wp_get_attachment_image
-------------------------+------------------------------
 Reporter:  fgirardey    |       Owner:
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Media        |     Version:  2.5
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+------------------------------

Comment (by birgire):

 @FlorianBrinkmann It looks like:

 {{{
 * @param string       $attr          Query string of attributes.

 }}}

 should be

 {{{
 * @param array        $attr          Attributes for the image markup.

 }}}

 But I read the ticket that such a filter wouldn't be the approach here,
 instead move the internals of {{{wp_get_attachment_image()}}} into a new
 function with an array output?

 Maybe I misread ;-)

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


More information about the wp-trac mailing list