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/twentysixteen/functions.php

    r43799 r43868  
    131131        add_theme_support( 'wp-block-styles' );
    132132
     133        // Add support for responsive embeds.
     134        add_theme_support( 'responsive-embeds' );
     135
    133136        // Add support for custom color scheme.
    134137        add_theme_support( 'editor-color-palette', array(
Note: See TracChangeset for help on using the changeset viewer.