/**
  * Constructor
  *
  * @global WP_Embed $wp_embed
  */
 public function __construct()
 {
     global $wp_embed;
     // Make sure we populate the WP_Embed handlers array.
     // These are providers that use a regex callback on the URL in question.
     // Do not confuse with oEmbed providers, which require an external ping.
     // Used in WP_Embed::shortcode().
     $this->handlers = $wp_embed->handlers;
     if (bp_use_embed_in_activity()) {
         add_filter('bp_get_activity_content_body', array(&$this, 'autoembed'), 8);
         add_filter('bp_get_activity_content_body', array(&$this, 'run_shortcode'), 7);
     }
     if (bp_use_embed_in_activity_replies()) {
         add_filter('bp_get_activity_content', array(&$this, 'autoembed'), 8);
         add_filter('bp_get_activity_content', array(&$this, 'run_shortcode'), 7);
     }
     if (bp_use_embed_in_forum_posts()) {
         add_filter('bp_get_the_topic_post_content', array(&$this, 'autoembed'), 8);
         add_filter('bp_get_the_topic_post_content', array(&$this, 'run_shortcode'), 7);
     }
     if (bp_use_embed_in_private_messages()) {
         add_filter('bp_get_the_thread_message_content', array(&$this, 'autoembed'), 8);
         add_filter('bp_get_the_thread_message_content', array(&$this, 'run_shortcode'), 7);
     }
     /**
      * Filters the BuddyPress Core oEmbed setup.
      *
      * @since 1.5.0
      *
      * @param BP_Embed $this Current instance of the BP_Embed. Passed by reference.
      */
     do_action_ref_array('bp_core_setup_oembed', array(&$this));
 }
 /**
  * Constructor
  *
  * @global unknown $wp_embed
  */
 function __construct()
 {
     global $wp_embed;
     // Make sure we populate the WP_Embed handlers array.
     // These are providers that use a regex callback on the URL in question.
     // Do not confuse with oEmbed providers, which require an external ping.
     // Used in WP_Embed::shortcode()
     $this->handlers = $wp_embed->handlers;
     if (bp_use_embed_in_activity()) {
         add_filter('bp_get_activity_content_body', array(&$this, 'autoembed'), 8);
         add_filter('bp_get_activity_content_body', array(&$this, 'run_shortcode'), 7);
     }
     if (bp_use_embed_in_activity_replies()) {
         add_filter('bp_get_activity_content', array(&$this, 'autoembed'), 8);
         add_filter('bp_get_activity_content', array(&$this, 'run_shortcode'), 7);
     }
     if (bp_use_embed_in_forum_posts()) {
         add_filter('bp_get_the_topic_post_content', array(&$this, 'autoembed'), 8);
         add_filter('bp_get_the_topic_post_content', array(&$this, 'run_shortcode'), 7);
     }
     if (bp_use_embed_in_private_messages()) {
         add_filter('bp_get_the_thread_message_content', array(&$this, 'autoembed'), 8);
         add_filter('bp_get_the_thread_message_content', array(&$this, 'run_shortcode'), 7);
     }
     do_action_ref_array('bp_core_setup_oembed', array(&$this));
 }