Making WordPress.org

Changeset 4181


Ignore:
Timestamp:
10/02/2016 09:04:18 PM (8 years ago)
Author:
ocean90
Message:

Support Forums: Disable <link> tag discovery for oEmbed.

See #2097.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php

    r3994 r4181  
    1616        add_filter( 'oembed_discovery_links', array( $this, 'disable_oembed_discovery_links' ) );
    1717        add_filter( 'oembed_response_data', array( $this, 'disable_oembed_response_data' ), 10, 2 );
     18        add_filter( 'embed_oembed_discover', '__return_false' );
    1819
    1920        add_action( 'plugins_loaded', array( $this, 'disable_inline_terms' ) );
     
    6566
    6667    /**
    67      * Disable the inline terms and mentions, if they are enabled. 
     68     * Disable the inline terms and mentions, if they are enabled.
    6869     * Inline terms and mentions are for O2 and should not be running on the support forums.
    6970     * If this plugin is moved out of mu-plugins, this function can be removed as well.
Note: See TracChangeset for help on using the changeset viewer.