[wp-trac] [WordPress Trac] #39272: Twenty Seventeen: Incorrect $content_width
WordPress Trac
noreply at wordpress.org
Thu Dec 22 23:23:28 UTC 2016
#39272: Twenty Seventeen: Incorrect $content_width
------------------------------+----------------------------
Reporter: celloexpressions | Owner: laurelfulford
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.7.1
Component: Bundled Theme | Version: 4.7
Severity: major | Resolution: fixed
Keywords: has-patch | Focuses:
------------------------------+----------------------------
Changes (by davidakennedy):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"39635"]:
{{{
#!CommitTicketReference repository="" revision="39635"
Twenty Seventeen: Fix incorrect `$content_width` value in theme
This addresses a major bug. Incorrectly setting the `$content_width`
causes media embeds to end up with the wrong aspect ratio, among other
issues. This fix uses `template_redirect`, to ensure conditional theme
tags can be used. It also defines a default value at `after_theme_setup`
so that plugins have something to work with at `init`.
Props sstoqnov, laurelfulford, obenland.
Fixes #39272.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39272#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list