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.



git-svn-id: https://develop.svn.wordpress.org/trunk@35702 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Gary Pendergast 2015-11-19 05:01:07 +00:00
parent 33d9464c3c
commit 99180a09ba
1 changed files with 0 additions and 12 deletions

View File

@ -143,18 +143,6 @@ class WP_Embed {
return ''; 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; $rawattr = $attr;
$attr = wp_parse_args( $attr, wp_embed_defaults( $url ) ); $attr = wp_parse_args( $attr, wp_embed_defaults( $url ) );