mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
OEmbed: move _wp_oembed_get_object() to embed.php, where all of the other embed functions live. WP_oEmbed is then in a file by itself. Load class-oembed.php in wp-settings.php and remove extraneous include calls.
See #37827. git-svn-id: https://develop.svn.wordpress.org/trunk@38361 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -479,7 +479,6 @@ class WP_Press_This {
|
||||
// Embedded Daily Motion videos
|
||||
$src = 'https://www.dailymotion.com/video/' . $src_matches[2];
|
||||
} else {
|
||||
require_once( ABSPATH . WPINC . '/class-oembed.php' );
|
||||
$oembed = _wp_oembed_get_object();
|
||||
|
||||
if ( ! $oembed->get_provider( $src, array( 'discover' => false ) ) ) {
|
||||
|
||||
Reference in New Issue
Block a user