WordPress.org

Make WordPress Core

Ticket #10337: 10337.13.patch

File 10337.13.patch, 447 bytes (added by Viper007Bond, 4 years ago)

Disable discovery in the oEmbed class by default

  • wp-includes/class-oembed.php

     
    7171                $provider = false; 
    7272 
    7373                if ( !isset($args['discover']) ) 
    74                         $args['discover'] = true; 
     74                        $args['discover'] = false; 
    7575 
    7676                foreach ( $this->providers as $matchmask => $data ) { 
    7777                        list( $providerurl, $regex ) = $data;