From b651a3cb9e8e208c22bc30bf6b88074387aad854 Mon Sep 17 00:00:00 2001 From: Ian Belanger Date: Thu, 30 Jan 2020 19:19:37 +0000 Subject: [PATCH] Bundled Themes: Twenty Twenty add theme support for responsive embeds. Adds the call to `responsive-embed` theme support in order to fix issues with facebook embeds not being responsive at certain screen widths. Props williampatton, nielslange. Fixes #48552. git-svn-id: https://develop.svn.wordpress.org/trunk@47135 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-content/themes/twentytwenty/functions.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wp-content/themes/twentytwenty/functions.php b/src/wp-content/themes/twentytwenty/functions.php index 049bbec5af..1ce76a6f6d 100644 --- a/src/wp-content/themes/twentytwenty/functions.php +++ b/src/wp-content/themes/twentytwenty/functions.php @@ -119,6 +119,9 @@ function twentytwenty_theme_support() { // Add support for full and wide align images. add_theme_support( 'align-wide' ); + // Add support for responsive embeds. + add_theme_support( 'responsive-embeds' ); + /* * Adds starter content to highlight the theme on fresh sites. * This is done conditionally to avoid loading the starter content on every