From b6539fb5a00a85641e4b7cdc4c9c080912bae111 Mon Sep 17 00:00:00 2001 From: "David A. Kennedy" Date: Tue, 17 Oct 2017 22:50:51 +0000 Subject: [PATCH] Twenty Seventeen: Fix double bottom-margins below embeds Corrects an issue where both the containing paragraph and embed had bottom margins, causing unwanted extra space. Props westonruter. Fixes #42118. Built from https://develop.svn.wordpress.org/trunk@41888 git-svn-id: http://core.svn.wordpress.org/trunk@41722 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyseventeen/style.css | 8 ++++++++ wp-includes/version.php | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/wp-content/themes/twentyseventeen/style.css b/wp-content/themes/twentyseventeen/style.css index 7936adb07e..9a82c945e1 100644 --- a/wp-content/themes/twentyseventeen/style.css +++ b/wp-content/themes/twentyseventeen/style.css @@ -2820,6 +2820,14 @@ object { max-width: 100%; } +/* Remove bottom on embeds that wrapped in paragraphs via wpautop. */ + +p > embed:only-child, +p > iframe:only-child, +p > object:only-child { + margin-bottom: 0; +} + .wp-caption, .gallery-caption { color: #666; diff --git a/wp-includes/version.php b/wp-includes/version.php index 3b473a2cf3..d6b11463c2 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9-beta2-41887'; +$wp_version = '4.9-beta2-41888'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.