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 {
|
| 130 | 130 | * Filters whether or not oEmbed discovery is on. |
| 131 | 131 | * |
| 132 | 132 | * @since 1.5.0 |
| | 133 | * @since 2.5.0 The default value changed to true to follow WP's changes in v4.4.0. |
| 133 | 134 | * |
| 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. |
| 135 | 138 | */ |
| 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 ); |
| 137 | 140 | |
| 138 | 141 | // Set up a new WP oEmbed object to check URL with registered oEmbed providers. |
| 139 | 142 | require_once( ABSPATH . WPINC . '/class-oembed.php' ); |