From c29313ab4daa219f563a7f12b7077862b828ccf4 Mon Sep 17 00:00:00 2001 From: nacin Date: Thu, 8 Apr 2010 02:16:21 +0000 Subject: [PATCH] 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 --- wp-includes/media.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-includes/media.php b/wp-includes/media.php index c6a35fa68..32faa6f9e 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -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 );