[wp-trac] [WordPress Trac] #58675: Theme: use the_header_image_tag (was: Twenty Sixteen: use the_header_image_tag)
WordPress Trac
noreply at wordpress.org
Wed Jul 5 12:34:35 UTC 2023
#58675: Theme: use the_header_image_tag
---------------------------+--------------------------
Reporter: spacedmonkey | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.3
Component: Bundled Theme | Version: 4.4
Severity: normal | Resolution:
Keywords: has-patch | Focuses: performance
---------------------------+--------------------------
Changes (by spacedmonkey):
* focuses: => performance
* milestone: Future Release => 6.3
Old description:
> Instead of manually building html tag in 2016 for custom header, use the
> `the_header_image_tag` function.
New description:
There 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.
See the following core themes that need to be updated.
[https://github.com/WordPress/wordpress-
develop/blob/a1a31fc47348a6e6164df05f5dc37e307360f4a1/src/wp-
content/themes/twentyeleven/header.php#L123 Twenty Eleven]
[https://github.com/WordPress/wordpress-
develop/blob/a1a31fc47348a6e6164df05f5dc37e307360f4a1/src/wp-
content/themes/twentyfourteen/header.php#L39 Twenty Fourteen]
[https://github.com/WordPress/wordpress-
develop/blob/a1a31fc47348a6e6164df05f5dc37e307360f4a1/src/wp-
content/themes/twentysixteen/header.php#L105 Twenty sixteen]
[https://github.com/WordPress/wordpress-
develop/blob/a1a31fc47348a6e6164df05f5dc37e307360f4a1/src/wp-
content/themes/twentyten/header.php#L107 Twenty Ten]
[https://github.com/WordPress/wordpress-
develop/blob/a1a31fc47348a6e6164df05f5dc37e307360f4a1/src/wp-
content/themes/twentytwelve/header.php#L57 Twenty Twelve]
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58675#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list