Register a dummy [media] shortcode for strip_shortcodes et al. props belg4mit, Viper007Bond. fixes #12505
git-svn-id: https://develop.svn.wordpress.org/trunk@14035 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c30f9e100c
commit
7ad8304223
|
@ -990,6 +990,9 @@ class WP_Embed {
|
|||
// Hack to get the [embed] shortcode to run before wpautop()
|
||||
add_filter( 'the_content', array(&$this, 'run_shortcode'), 8 );
|
||||
|
||||
// Shortcode placeholder for strip_shortcodes()
|
||||
add_shortcode( 'embed', '__return_false' );
|
||||
|
||||
// Attempts to embed all URLs in a post
|
||||
if ( get_option('embed_autourls') )
|
||||
add_filter( 'the_content', array(&$this, 'autoembed'), 8 );
|
||||
|
|
Loading…
Reference in New Issue