From 6f076d4d519848d02102800be476670bcb159141 Mon Sep 17 00:00:00 2001 From: laurelfulford Date: Tue, 6 Nov 2018 00:25:50 +0000 Subject: [PATCH] Bundled Themes: Add theme support for responsive embeds Add `add_theme_support( 'responsive-embeds' );` to all of the responsive default themes as part of their Gutenberg support. This makes sure any embeds coming from the new block-based editor maintain their aspect ratios at different screen sizes. Fixes #45274. Built from https://develop.svn.wordpress.org/branches/5.0@43868 git-svn-id: http://core.svn.wordpress.org/branches/5.0@43697 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyeleven/functions.php | 3 +++ wp-content/themes/twentyfifteen/functions.php | 3 +++ wp-content/themes/twentyfourteen/functions.php | 3 +++ wp-content/themes/twentyseventeen/functions.php | 3 +++ wp-content/themes/twentysixteen/functions.php | 3 +++ wp-content/themes/twentythirteen/functions.php | 3 +++ wp-content/themes/twentytwelve/functions.php | 3 +++ wp-includes/version.php | 2 +- 8 files changed, 22 insertions(+), 1 deletion(-) diff --git a/wp-content/themes/twentyeleven/functions.php b/wp-content/themes/twentyeleven/functions.php index cc8f2ca464..069f19bf5d 100644 --- a/wp-content/themes/twentyeleven/functions.php +++ b/wp-content/themes/twentyeleven/functions.php @@ -88,6 +88,9 @@ function twentyeleven_setup() { // Load default block styles. add_theme_support( 'wp-block-styles' ); + // Add support for responsive embeds. + add_theme_support( 'responsive-embeds' ); + // Add support for custom color scheme. add_theme_support( 'editor-color-palette', array( array( diff --git a/wp-content/themes/twentyfifteen/functions.php b/wp-content/themes/twentyfifteen/functions.php index 5f953e9d0a..1acb26c3ee 100644 --- a/wp-content/themes/twentyfifteen/functions.php +++ b/wp-content/themes/twentyfifteen/functions.php @@ -148,6 +148,9 @@ function twentyfifteen_setup() { // Load default block styles. add_theme_support( 'wp-block-styles' ); + // Add support for responsive embeds. + add_theme_support( 'responsive-embeds' ); + // Add support for custom color scheme. add_theme_support( 'editor-color-palette', array( array( diff --git a/wp-content/themes/twentyfourteen/functions.php b/wp-content/themes/twentyfourteen/functions.php index cb6a488690..d147558e9d 100644 --- a/wp-content/themes/twentyfourteen/functions.php +++ b/wp-content/themes/twentyfourteen/functions.php @@ -76,6 +76,9 @@ function twentyfourteen_setup() { // Load default block styles. add_theme_support( 'wp-block-styles' ); + // Add support for responsive embeds. + add_theme_support( 'responsive-embeds' ); + // Add support for custom color scheme. add_theme_support( 'editor-color-palette', array( array( diff --git a/wp-content/themes/twentyseventeen/functions.php b/wp-content/themes/twentyseventeen/functions.php index e4282e5fd3..524e4e43f5 100644 --- a/wp-content/themes/twentyseventeen/functions.php +++ b/wp-content/themes/twentyseventeen/functions.php @@ -112,6 +112,9 @@ function twentyseventeen_setup() { // Load default block styles. add_theme_support( 'wp-block-styles' ); + // Add support for responsive embeds. + add_theme_support( 'responsive-embeds' ); + // Define and register starter content to showcase the theme on new sites. $starter_content = array( 'widgets' => array( diff --git a/wp-content/themes/twentysixteen/functions.php b/wp-content/themes/twentysixteen/functions.php index f5e7e950a2..ef8ef088db 100644 --- a/wp-content/themes/twentysixteen/functions.php +++ b/wp-content/themes/twentysixteen/functions.php @@ -130,6 +130,9 @@ function twentysixteen_setup() { // Load default block styles. add_theme_support( 'wp-block-styles' ); + // Add support for responsive embeds. + add_theme_support( 'responsive-embeds' ); + // Add support for custom color scheme. add_theme_support( 'editor-color-palette', array( array( diff --git a/wp-content/themes/twentythirteen/functions.php b/wp-content/themes/twentythirteen/functions.php index f86c3f788c..e52bbb67bb 100644 --- a/wp-content/themes/twentythirteen/functions.php +++ b/wp-content/themes/twentythirteen/functions.php @@ -83,6 +83,9 @@ function twentythirteen_setup() { // Add support for full and wide align images. add_theme_support( 'align-wide' ); + // Add support for responsive embeds. + add_theme_support( 'responsive-embeds' ); + // Add support for custom color scheme. add_theme_support( 'editor-color-palette', array( array( diff --git a/wp-content/themes/twentytwelve/functions.php b/wp-content/themes/twentytwelve/functions.php index 51c26754d3..8df145ab82 100644 --- a/wp-content/themes/twentytwelve/functions.php +++ b/wp-content/themes/twentytwelve/functions.php @@ -60,6 +60,9 @@ function twentytwelve_setup() { // Load default block styles. add_theme_support( 'wp-block-styles' ); + // Add support for responsive embeds. + add_theme_support( 'responsive-embeds' ); + // Add support for custom color scheme. add_theme_support( 'editor-color-palette', array( array( diff --git a/wp-includes/version.php b/wp-includes/version.php index 6e7853fc2a..1837dbe6cc 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-beta3-43867'; +$wp_version = '5.0-beta3-43868'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.