mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +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:
@@ -677,22 +677,3 @@ class WP_oEmbed {
|
||||
return str_replace( $tokens, $pre, $stripped );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the initialized WP_oEmbed object.
|
||||
*
|
||||
* @since 2.9.0
|
||||
* @access private
|
||||
*
|
||||
* @staticvar WP_oEmbed $wp_oembed
|
||||
*
|
||||
* @return WP_oEmbed object.
|
||||
*/
|
||||
function _wp_oembed_get_object() {
|
||||
static $wp_oembed = null;
|
||||
|
||||
if ( is_null( $wp_oembed ) ) {
|
||||
$wp_oembed = new WP_oEmbed();
|
||||
}
|
||||
return $wp_oembed;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user