From de05fd1569ee6b70a26bb553eaa7f8e53f0ce483 Mon Sep 17 00:00:00 2001 From: westi Date: Wed, 24 Aug 2011 10:54:48 +0000 Subject: [PATCH] Parse shortcodes in text widgets by default. Fixes #10457 props tmoorewp, sillybean, jamescollins. git-svn-id: http://svn.automattic.com/wordpress/trunk@18592 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/default-filters.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/default-filters.php b/wp-includes/default-filters.php index a8a7311917..c8be7d0e90 100644 --- a/wp-includes/default-filters.php +++ b/wp-includes/default-filters.php @@ -194,6 +194,8 @@ add_filter( 'comments_open', '_close_comments_for_old_post', 10, 2 ); add_filter( 'pings_open', '_close_comments_for_old_post', 10, 2 ); add_filter( 'editable_slug', 'urldecode' ); add_filter( 'nav_menu_meta_box_object', '_wp_nav_menu_meta_box_object' ); +add_filter( 'widget_text', 'shortcode_unautop' ); +add_filter( 'widget_text', 'do_shortcode' ); // Actions add_action( 'wp_head', 'wp_enqueue_scripts', 1 );