WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/15/2009 09:16:00 PM (10 years ago)
Author:
ryan
Message:

Remove oEmbed discovery option. Add hook so plugins can enable it. see #10337

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/media.php

    r12381 r12411  
    11001100
    11011101            // Use oEmbed to get the HTML
    1102             $attr['discover'] = ( get_option( 'embed_oembed_discover' ) && author_can( $post_ID, 'unfiltered_html' ) ) ? true : false;
     1102            $attr['discover'] = ( apply_filters('embed_oembed_discover', false) && author_can( $post_ID, 'unfiltered_html' ) ) ? true : false;
    11031103            $html = wp_oembed_get( $url, $attr );
    11041104
Note: See TracChangeset for help on using the changeset viewer.