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
0715ee43f5
commit
3db4c01c9b
|
@ -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