Permalink
Browse files

Allow shortcodes in text widgets since this was removed from WP 3.3.

git-svn-id: http://svn.locallylost.com/themes/hybrid-core/trunk@937 dba0f204-706d-4bc1-bc29-8b92e0485636
  • Loading branch information...
1 parent 5b1f2e6 commit 06fef799b7a724317e8617ade908d0c2b2f3f74a greenshady committed Dec 8, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 hybrid.php
View
@@ -330,7 +330,8 @@ function default_filters() {
add_filter( 'gettext', 'hybrid_gettext', 1, 3 );
add_filter( 'gettext', 'hybrid_extensions_gettext', 1, 3 );
- /* Make term descriptions shortcode aware. */
+ /* Make text widgets and term descriptions shortcode aware. */
+ add_filter( 'widget_text', 'do_shortcode' );
add_filter( 'term_description', 'do_shortcode' );
}
}

0 comments on commit 06fef79

Please sign in to comment.