1 | | Instead of manually building html tag in 2016 for custom header, use the `the_header_image_tag` function. |
| 1 | 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. |
| 2 | |
| 3 | See 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] |