From a57b5c8ce52ceec656aca39928fcd9c294b10d29 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Thu, 25 Feb 2016 10:22:43 +0000 Subject: [PATCH] Embeds: Use a more accessible way to initially hide the iframe. This fixes a bug in Firefox where assets inside the iframe aren't being displayed because they have no computed style. See #35894. git-svn-id: https://develop.svn.wordpress.org/trunk@36708 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/embed.php | 4 ++-- src/wp-includes/js/wp-embed.js | 2 +- tests/phpunit/tests/oembed/filterResult.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/wp-includes/embed.php b/src/wp-includes/embed.php index ff42351798..8c79cc8722 100644 --- a/src/wp-includes/embed.php +++ b/src/wp-includes/embed.php @@ -777,7 +777,7 @@ function wp_filter_oembed_result( $result, $data, $url ) { if ( ! empty( $content[1] ) ) { // We have a blockquote to fall back on. Hide the iframe by default. - $html = str_replace( '