diff --git a/src/wp-includes/theme.php b/src/wp-includes/theme.php index 7a233b2e88..3f5b5e7455 100644 --- a/src/wp-includes/theme.php +++ b/src/wp-includes/theme.php @@ -1034,6 +1034,17 @@ function display_header_text() { return 'blank' != $text_color; } +/** + * Check whether a header image is set or not. + * + * @since 4.2.0 + * + * @return bool + */ +function has_header_image() { + return (bool) get_header_image(); +} + /** * Retrieve header image for custom header. *