WordPress/wp-content/themes
David A. Kennedy 7d96057b8b Twenty Seventeen: Ensure the use of proper image size for custom header image
The `sizes` attribute was calculated incorrectly, resulting in the browser downloading the wrong resource. This filters the attribute to correct that.

Before the filter, the `img` contained:
`sizes="(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px"`

And after:
`sizes="100vw"`

Props joemcgill, transl8or.

Fixes #38847.

Built from https://develop.svn.wordpress.org/trunk@39291


git-svn-id: http://core.svn.wordpress.org/trunk@39231 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-18 18:43:30 +00:00
..
twentyeleven Bundled Themes: Bump versions and update theme tags. 2016-07-31 16:37:32 +00:00
twentyfifteen Bundled theme: Add preconnect to fonts.gstatic.com in 2012-15 themes. 2016-10-23 01:56:32 +00:00
twentyfourteen Customize: Adjust layout for edit shortcuts only when shown. 2016-11-15 00:15:30 +00:00
twentyseventeen Twenty Seventeen: Ensure the use of proper image size for custom header image 2016-11-18 18:43:30 +00:00
twentyten Bundled Themes: Bump versions and update theme tags. 2016-07-31 16:37:32 +00:00
twentythirteen Bundled theme: Add preconnect to fonts.gstatic.com in 2012-15 themes. 2016-10-23 01:56:32 +00:00
twentytwelve Bundled theme: Add preconnect to fonts.gstatic.com in 2012-15 themes. 2016-10-23 01:56:32 +00:00
index.php Remove closing PHP tags from the rest of index.php files in wp-content, for consistency with wp-content/index.php. 2014-06-05 15:59:14 +00:00