mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Embeds. Props Viper007Bond. see #10337
git-svn-id: https://develop.svn.wordpress.org/trunk@12023 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2741,6 +2741,20 @@ function wp_parse_args( $args, $defaults = '' ) {
|
||||
return $r;
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines if default embed handlers should be loaded.
|
||||
*
|
||||
* Checks to make sure that the embeds library hasn't already been loaded. If
|
||||
* it hasn't, then it will load the embeds library.
|
||||
*
|
||||
* @since 2.9
|
||||
*/
|
||||
function wp_maybe_load_embeds() {
|
||||
if ( ! apply_filters('load_default_embeds', true) )
|
||||
return;
|
||||
require_once( ABSPATH . WPINC . '/default-embeds.php' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines if Widgets library should be loaded.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user