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

    r44148 r44227  
    124124        add_theme_support( 'wp-block-styles' );
    125125
     126        // Add support for responsive embeds.
     127        add_theme_support( 'responsive-embeds' );
     128
    126129        // Define and register starter content to showcase the theme on new sites.
    127130        $starter_content = array(
Note: See TracChangeset for help on using the changeset viewer.