[wp-trac] [WordPress Trac] #21389: Retina theme custom headers

WordPress Trac noreply at wordpress.org
Thu Nov 5 01:03:01 UTC 2015


#21389: Retina theme custom headers
-------------------------------------------------+-------------------------
 Reporter:  nacin                                |       Owner:  joemcgill
     Type:  task (blessed)                       |      Status:  assigned
 Priority:  normal                               |   Milestone:  4.4
Component:  Customize                            |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  responsive-images has-patch 2nd-     |     Focuses:
  opinion                                        |
-------------------------------------------------+-------------------------
Changes (by joemcgill):

 * keywords:  responsive-images => responsive-images has-patch 2nd-opinion


Comment:

 [attachment:21389.diff] adds two new helper functions,
 `get_header_image_tag()` and `the_header_image_tag()` which generate the
 image markup for the custom header image by getting the
 `get_custom_header()` object and passing it to
 `wp_get_attachment_image()`, which will automatically include `srcset` and
 `sizes` attributes.

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


More information about the wp-trac mailing list