From f4fa2c362e044fb05a1df795937425ef60486301 Mon Sep 17 00:00:00 2001 From: desrosj Date: Mon, 17 Dec 2018 03:07:04 +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 block editor support. This makes sure any embeds coming from the new block-based editor maintain their aspect ratios at different screen sizes. Merges [43868] into trunk. Props laurelfulford. Fixes #45274. Built from https://develop.svn.wordpress.org/trunk@44227 git-svn-id: http://core.svn.wordpress.org/trunk@44057 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 af7484e626..8b8c74439a 100644 --- a/wp-content/themes/twentyeleven/functions.php +++ b/wp-content/themes/twentyeleven/functions.php @@ -89,6 +89,9 @@ if ( ! function_exists( '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', diff --git a/wp-content/themes/twentyfifteen/functions.php b/wp-content/themes/twentyfifteen/functions.php index a9178f6b27..cf03b1a0f0 100644 --- a/wp-content/themes/twentyfifteen/functions.php +++ b/wp-content/themes/twentyfifteen/functions.php @@ -177,6 +177,9 @@ if ( ! function_exists( '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', diff --git a/wp-content/themes/twentyfourteen/functions.php b/wp-content/themes/twentyfourteen/functions.php index 62e162d86b..79a8a3d52b 100644 --- a/wp-content/themes/twentyfourteen/functions.php +++ b/wp-content/themes/twentyfourteen/functions.php @@ -76,6 +76,9 @@ if ( ! function_exists( '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', diff --git a/wp-content/themes/twentyseventeen/functions.php b/wp-content/themes/twentyseventeen/functions.php index dde97fab7e..8a067d3a42 100644 --- a/wp-content/themes/twentyseventeen/functions.php +++ b/wp-content/themes/twentyseventeen/functions.php @@ -123,6 +123,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 e8c75a243e..9dd1bab99e 100644 --- a/wp-content/themes/twentysixteen/functions.php +++ b/wp-content/themes/twentysixteen/functions.php @@ -141,6 +141,9 @@ if ( ! function_exists( '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', diff --git a/wp-content/themes/twentythirteen/functions.php b/wp-content/themes/twentythirteen/functions.php index 2a4188b33c..a46b5f9386 100644 --- a/wp-content/themes/twentythirteen/functions.php +++ b/wp-content/themes/twentythirteen/functions.php @@ -85,6 +85,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', diff --git a/wp-content/themes/twentytwelve/functions.php b/wp-content/themes/twentytwelve/functions.php index 62d3a9a741..9fedeecd52 100644 --- a/wp-content/themes/twentytwelve/functions.php +++ b/wp-content/themes/twentytwelve/functions.php @@ -61,6 +61,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', diff --git a/wp-includes/version.php b/wp-includes/version.php index 25d1e1caf2..403e5a6ef3 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.1-alpha-44226'; +$wp_version = '5.1-alpha-44227'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.