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
This commit is contained in:
desrosj 2018-12-17 03:07:04 +00:00
parent 7509965a56
commit f4fa2c362e
8 changed files with 22 additions and 1 deletions

View File

@ -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',

View File

@ -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',

View File

@ -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',

View File

@ -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(

View File

@ -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',

View File

@ -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',

View File

@ -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',

View File

@ -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.