[wp-trac] [WordPress Trac] #58675: Theme: use the_header_image_tag in core themes

WordPress Trac noreply at wordpress.org
Thu Sep 14 11:24:14 UTC 2023


#58675: Theme: use the_header_image_tag in core themes
------------------------------+---------------------------
 Reporter:  spacedmonkey      |       Owner:  spacedmonkey
     Type:  enhancement       |      Status:  closed
 Priority:  normal            |   Milestone:  6.4
Component:  Bundled Theme     |     Version:  4.4
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:  performance
------------------------------+---------------------------
Changes (by spacedmonkey):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"56583" 56583]:
 {{{
 #!CommitTicketReference repository="" revision="56583"
 Bundled Theme: Implement the_header_image_tag function for enhanced
 compatibility for older core themes.

 The `the_header_image_tag` function was introduced in WordPress 4.4 as
 part of [35594]. It is used in all themes created post WordPress 4.4 that
 supported header images. The function `get_header_image_tag` continues to
 get updated with new image features, like lazy loading, async decoding and
 fetch priority. To ensure our core themes maintain compatibility and
 benefit from these enhancements, a backward compatibility shim has been
 applied, integrating the `the_header_image_tag` function into the
 following core themes:

 - Twenty Ten
 - Twenty Eleven
 - Twenty Twelve
 - Twenty Fourteen
 - Twenty Sixteen

 This change ensures future compatibility and modern image features are
 applied for header images to these older themes.

 Props spacedmonkey, flixos90, mukesh27.
 Fixes #58675.
 }}}

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


More information about the wp-trac mailing list