[wp-trac] [WordPress Trac] #39272: Twenty Seventeen: Incorrect $content_width

WordPress Trac noreply at wordpress.org
Fri Dec 30 05:47:00 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 fixed-major  |     Focuses:
Changes (by dd32):

 * status:  reopened => closed
 * resolution:   => fixed


 In [changeset:"39650"]:
 #!CommitTicketReference repository="" revision="39650"
 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.
 Merges [39635] to the 4.7 branch.
 Fixes #39272.

Ticket URL: <https://core.trac.wordpress.org/ticket/39272#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list