[buddypress-trac] [BuddyPress Trac] #7395: embed_oembed_html not used on sitewide activity?

buddypress-trac noreply at wordpress.org
Fri Dec 16 16:48:00 UTC 2016


#7395: embed_oembed_html not used on sitewide activity?
---------------------------+-----------------------------
 Reporter:  petervandoorn  |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  (not sure)     |    Version:  2.7.2
 Severity:  normal         |   Keywords:
---------------------------+-----------------------------
 I’m using this code ( from http://wpsites.org/how-to-make-oembed-videos-
 responsive-10520 ) to filter WordPress’s oEmbed to make YouTube videos
 responsive.

 {{{#!php
 add_filter('embed_oembed_html', 'ct_wrap_embed_container', 10, 3);

 function ct_wrap_embed_container($html, $url, $attr) {
         return "<div class=\"responsive-video\">".$html."</div>";
 }
 }}}


 It works a treat in bbPress forum topic views, but it isn’t working on the
 BP site-wide activity feed.

 This Codex page https://codex.buddypress.org/getting-started/embeds/ says
 that WP’s native oEmbed functionality is used since BP 1.5, so I would
 expect it to work.

 Thanks

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7395>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list