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.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43868 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
laurelfulford 2018-11-06 00:24:12 +00:00
parent abfbb344f1
commit c99ccf859e
7 changed files with 21 additions and 0 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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