From 53acbb936ea9da3f30d26a41b7b4885e83fa6cde Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Thu, 19 Nov 2015 05:02:27 +0000 Subject: [PATCH] Embeds: Remove the `allow_insecure_embeds` filter. This reverts [35640]. On further reflection, it really didn't do what it said it did. Fixes #34588. Built from https://develop.svn.wordpress.org/trunk@35702 git-svn-id: http://core.svn.wordpress.org/trunk@35666 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-embed.php | 12 ------------ wp-includes/version.php | 2 +- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/wp-includes/class-wp-embed.php b/wp-includes/class-wp-embed.php index 5e25e01892..730fc4fc91 100644 --- a/wp-includes/class-wp-embed.php +++ b/wp-includes/class-wp-embed.php @@ -143,18 +143,6 @@ class WP_Embed { return ''; } - /** - * Optionally allow or block non-SSL embeds. - * - * @since 4.4.0 - * - * @param bool $allowed Flag to determine if non-SSL embeds should be allowed. Default true. - * @param string $url The URL being embedded. - */ - if ( 0 !== strpos( $url, 'https://' ) && ! apply_filters( 'allow_insecure_embeds', true, $url ) ) { - return false; - } - $rawattr = $attr; $attr = wp_parse_args( $attr, wp_embed_defaults( $url ) ); diff --git a/wp-includes/version.php b/wp-includes/version.php index ba08ba1a72..4cd5d98c2a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-beta4-35701'; +$wp_version = '4.4-beta4-35702'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.