mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Register a dummy [media] shortcode for strip_shortcodes et al. props belg4mit, Viper007Bond. fixes #12505
git-svn-id: http://svn.automattic.com/wordpress/trunk@14035 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
48dc61d1a9
commit
c29313ab4d
@ -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
Block a user