Make WordPress Core

Changes between Initial Version and Version 3 of Ticket #58675


Ignore:
Timestamp:
07/05/2023 12:34:35 PM (12 months ago)
Author:
spacedmonkey
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #58675

    • Property Keywords has-patch added
    • Property Milestone changed from Future Release to 6.3
    • Property Focuses performance added
    • Property Summary changed from Use the_header_image_tag in 2016 theme to Theme: use the_header_image_tag
  • Ticket #58675 – Description

    initial v3  
    1 Instead of manually building html tag in 2016 for custom header, use the  `the_header_image_tag` function.
     1There are a number of core themes that do not use the `the_header_image_tag` function. This function was added in WP 4.4 after some of these theme were introduced. Add a backwards compatibility shim to use this function in core themes.
     2
     3See the following core themes that need to be updated.
     4
     5
     6[https://github.com/WordPress/wordpress-develop/blob/a1a31fc47348a6e6164df05f5dc37e307360f4a1/src/wp-content/themes/twentyeleven/header.php#L123 Twenty Eleven]
     7[https://github.com/WordPress/wordpress-develop/blob/a1a31fc47348a6e6164df05f5dc37e307360f4a1/src/wp-content/themes/twentyfourteen/header.php#L39 Twenty Fourteen]
     8[https://github.com/WordPress/wordpress-develop/blob/a1a31fc47348a6e6164df05f5dc37e307360f4a1/src/wp-content/themes/twentysixteen/header.php#L105 Twenty sixteen]
     9[https://github.com/WordPress/wordpress-develop/blob/a1a31fc47348a6e6164df05f5dc37e307360f4a1/src/wp-content/themes/twentyten/header.php#L107 Twenty Ten]
     10[https://github.com/WordPress/wordpress-develop/blob/a1a31fc47348a6e6164df05f5dc37e307360f4a1/src/wp-content/themes/twentytwelve/header.php#L57 Twenty Twelve]