WordPress/wp-content/themes
David A. Kennedy 7a8e17d50a 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.

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


git-svn-id: http://core.svn.wordpress.org/trunk@39575 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-22 23:24:44 +00:00
..
twentyeleven Bundled Themes: Bump versions and update theme tags. 2016-07-31 16:37:32 +00:00
twentyfifteen Default Themes: Update version numbers and readme files for 4.7 release 2016-12-04 23:27:41 +00:00
twentyfourteen Default Themes: Update version numbers and readme files for 4.7 release 2016-12-04 23:27:41 +00:00
twentyseventeen Twenty Seventeen: Fix incorrect `$content_width` value in theme 2016-12-22 23:24:44 +00:00
twentyten Bundled Themes: Bump versions and update theme tags. 2016-07-31 16:37:32 +00:00
twentythirteen Default Themes: Update version numbers and readme files for 4.7 release 2016-12-04 23:27:41 +00:00
twentytwelve Default Themes: Update version numbers and readme files for 4.7 release 2016-12-04 23:27:41 +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