Make WordPress Core

Changeset 35702


Ignore:
Timestamp:
11/19/2015 05:01:07 AM (11 years ago)
Author:
pento
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-embed.php

    r35640 r35702  
    142142                        $this->last_attr = $attr;
    143143                        return '';
    144                 }
    145 
    146                 /**
    147                  * Optionally allow or block non-SSL embeds.
    148                  *
    149                  * @since 4.4.0
    150                  *
    151                  * @param bool   $allowed Flag to determine if non-SSL embeds should be allowed. Default true.
    152                  * @param string $url     The URL being embedded.
    153                  */
    154                 if ( 0 !== strpos( $url, 'https://' ) && ! apply_filters( 'allow_insecure_embeds', true, $url ) ) {
    155                         return false;
    156144                }
    157145
Note: See TracChangeset for help on using the changeset viewer.