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:
Ryan Boren
2009-10-13 17:04:22 +00:00
parent 9d5f38a1df
commit e71f15a979
11 changed files with 775 additions and 4 deletions
+14
View File
@@ -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.
*