Make WordPress Core


Ignore:
Timestamp:
11/06/2018 12:24:12 AM (8 years ago)
Author:
laurelfulford
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/src/wp-content/themes/twentyfifteen/functions.php

    r43798 r43868  
    149149        add_theme_support( 'wp-block-styles' );
    150150
     151        // Add support for responsive embeds.
     152        add_theme_support( 'responsive-embeds' );
     153
    151154        // Add support for custom color scheme.
    152155        add_theme_support( 'editor-color-palette', array(
Note: See TracChangeset for help on using the changeset viewer.