Skip to:
Content

BuddyPress.org

Ticket #6778: 6778.01.patch

File 6778.01.patch, 958 bytes (added by r-a-y, 11 years ago)
  • src/bp-core/classes/class-bp-embed.php

    diff --git src/bp-core/classes/class-bp-embed.php src/bp-core/classes/class-bp-embed.php
    index 2ffcc15..29f5c65 100644
    class BP_Embed extends WP_Embed {  
    130130                 * Filters whether or not oEmbed discovery is on.
    131131                 *
    132132                 * @since 1.5.0
     133                 * @since 2.5.0 The default value changed to true to follow WP's changes in v4.4.0.
    133134                 *
    134                  * @param bool $value Current status of oEmbed discovery.
     135                 * @see WP_oEmbed::discover()
     136                 *
     137                 * @param bool $enable Whether to enable `<link>` tag discovery. Default true.
    135138                 */
    136                 $attr['discover'] = ( apply_filters( 'bp_embed_oembed_discover', false ) && current_user_can( 'unfiltered_html' ) );
     139                $attr['discover'] = apply_filters( 'bp_embed_oembed_discover', true );
    137140
    138141                // Set up a new WP oEmbed object to check URL with registered oEmbed providers.
    139142                require_once( ABSPATH . WPINC . '/class-oembed.php' );