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:
parent
7509965a56
commit
f4fa2c362e
|
@ -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',
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue