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

    r44144 r44227  
    7676                // Load default block styles.
    7777                add_theme_support( 'wp-block-styles' );
     78
     79                // Add support for responsive embeds.
     80                add_theme_support( 'responsive-embeds' );
    7881
    7982                // Add support for custom color scheme.
Note: See TracChangeset for help on using the changeset viewer.