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
This commit is contained in:
westi 2011-08-24 10:54:48 +00:00
parent 76eb5b8138
commit de05fd1569

View File

@ -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 );