diff --git a/wp-content/themes/twentyseventeen/functions.php b/wp-content/themes/twentyseventeen/functions.php index b06649443e..6746165823 100644 --- a/wp-content/themes/twentyseventeen/functions.php +++ b/wp-content/themes/twentyseventeen/functions.php @@ -424,6 +424,21 @@ function twentyseventeen_content_image_sizes_attr( $sizes, $size ) { } add_filter( 'wp_calculate_image_sizes', 'twentyseventeen_content_image_sizes_attr', 10, 2 ); +/** + * Filter the `sizes` value in the header image markup. + * + * @since Twenty Seventeen 1.0 + * + * @param string $html The HTML image tag markup being filtered. + * @param object $header The custom header object returned by 'get_custom_header()'. + * @param array $attr Array of the attributes for the image tag. + * @return string The filtered header image HTML. + */ +function twentyseventeen_header_image_tag( $html, $header, $attr ) { + return str_replace( $attr['sizes'], '100vw', $html ); +} +add_filter ( 'get_header_image_tag', 'twentyseventeen_header_image_tag', 10, 3 ); + /** * Add custom image sizes attribute to enhance responsive image functionality * for post thumbnails. diff --git a/wp-includes/version.php b/wp-includes/version.php index c78f79d6ff..c8a6f9d514 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-beta4-39290'; +$wp_version = '4.7-beta4-39291'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.