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
This commit is contained in:
laurelfulford 2018-11-06 00:25:50 +00:00
parent 23be3ef6e6
commit 6f076d4d51
8 changed files with 22 additions and 1 deletions

View File

@ -88,6 +88,9 @@ function twentyeleven_setup() {
// Load default block styles. // Load default block styles.
add_theme_support( 'wp-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 support for custom color scheme.
add_theme_support( 'editor-color-palette', array( add_theme_support( 'editor-color-palette', array(
array( array(

View File

@ -148,6 +148,9 @@ function twentyfifteen_setup() {
// Load default block styles. // Load default block styles.
add_theme_support( 'wp-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 support for custom color scheme.
add_theme_support( 'editor-color-palette', array( add_theme_support( 'editor-color-palette', array(
array( array(

View File

@ -76,6 +76,9 @@ function twentyfourteen_setup() {
// Load default block styles. // Load default block styles.
add_theme_support( 'wp-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 support for custom color scheme.
add_theme_support( 'editor-color-palette', array( add_theme_support( 'editor-color-palette', array(
array( array(

View File

@ -112,6 +112,9 @@ function twentyseventeen_setup() {
// Load default block styles. // Load default block styles.
add_theme_support( 'wp-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. // Define and register starter content to showcase the theme on new sites.
$starter_content = array( $starter_content = array(
'widgets' => array( 'widgets' => array(

View File

@ -130,6 +130,9 @@ function twentysixteen_setup() {
// Load default block styles. // Load default block styles.
add_theme_support( 'wp-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 support for custom color scheme.
add_theme_support( 'editor-color-palette', array( add_theme_support( 'editor-color-palette', array(
array( array(

View File

@ -83,6 +83,9 @@ function twentythirteen_setup() {
// Add support for full and wide align images. // Add support for full and wide align images.
add_theme_support( 'align-wide' ); add_theme_support( 'align-wide' );
// Add support for responsive embeds.
add_theme_support( 'responsive-embeds' );
// Add support for custom color scheme. // Add support for custom color scheme.
add_theme_support( 'editor-color-palette', array( add_theme_support( 'editor-color-palette', array(
array( array(

View File

@ -60,6 +60,9 @@ function twentytwelve_setup() {
// Load default block styles. // Load default block styles.
add_theme_support( 'wp-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 support for custom color scheme.
add_theme_support( 'editor-color-palette', array( add_theme_support( 'editor-color-palette', array(
array( array(

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.