Make WordPress Core


Ignore:
Timestamp:
12/16/2018 04:33:26 AM (8 years ago)
Author:
desrosj
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 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.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/wp-content/themes/twentyfifteen/functions.php

    r44145 r44227  
    178178                add_theme_support( 'wp-block-styles' );
    179179
     180                // Add support for responsive embeds.
     181                add_theme_support( 'responsive-embeds' );
     182
    180183                // Add support for custom color scheme.
    181184                add_theme_support(
Note: See TracChangeset for help on using the changeset viewer.