[wp-trac] [WordPress Trac] #38942: New filter for header image tag attributes

WordPress Trac noreply at wordpress.org
Thu May 11 04:58:13 UTC 2017


#38942: New filter for header image tag attributes
-------------------------+------------------------------
 Reporter:  junaidbhura  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Themes       |     Version:  4.7
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  template
-------------------------+------------------------------

Comment (by junaidbhura):

 Replying to [comment:4 obenland]:
 > I'm not sure a filter is really needed here since the function accepts
 an array of attributes that override any defaults. Am I missing something?

 The idea is to have this work similar to
 `wp_get_attachment_image_attributes` . There is currently no way to modify
 the header image's attributes like a normal attachment image.

 There is a `get_header_image_tag` filter, but that is applied
 '''''after''''' the image's HTML has already been built.

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


More information about the wp-trac mailing list