[wp-trac] [WordPress Trac] #38847: Twenty Seventeen: Header Image used is smaller than 2000x1200px
WordPress Trac
noreply at wordpress.org
Fri Nov 18 18:42:18 UTC 2016
#38847: Twenty Seventeen: Header Image used is smaller than 2000x1200px
---------------------------+------------------------
Reporter: transl8or | Owner: joemcgill
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.7
Component: Bundled Theme | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: ui
---------------------------+------------------------
Changes (by davidakennedy):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"39291"]:
{{{
#!CommitTicketReference repository="" revision="39291"
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.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38847#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list