Parse shortcodes in text widgets by default. Fixes #10457 props tmoorewp, sillybean, jamescollins.

git-svn-id: https://develop.svn.wordpress.org/trunk@18592 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2011-08-24 10:54:48 +00:00
parent 89a6ae387e
commit 087b273a40
1 changed files with 2 additions and 0 deletions

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