Skip to:
Content

BuddyPress.org

Ticket #7395: 7395.01.patch

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

     
    205205
    206206                        // Grab cache and return it if available.
    207207                        if ( !empty( $cache ) ) {
     208                                /** This filter is documented in /wp-includes/class-wp-embed.php */
     209                                $cache = apply_filters( 'embed_oembed_html', $cache, $url, $attr, 0 );
    208210
    209211                                /**
    210212                                 * Filters the found cache for the provided URL.
     
    238240
    239241                                // If there was a result, return it.
    240242                                if ( $html ) {
     243                                        /** This filter is documented in /wp-includes/class-wp-embed.php */
     244                                        $html = apply_filters( 'embed_oembed_html', $html, $url, $attr, 0 );
    241245
    242246                                        /** This filter is documented in bp-core/classes/class-bp-embed.php */
    243247                                        return apply_filters( 'bp_embed_oembed_html', $html, $url, $attr, $rawattr );