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. git-svn-id: https://develop.svn.wordpress.org/trunk@44227 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
415f33c904
commit
663a5e9662
@ -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',
|
||||
|
@ -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',
|
||||
|
@ -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',
|
||||
|
@ -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(
|
||||
|
@ -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',
|
||||
|
@ -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',
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user