Permalink
Browse files

Don't specialchars markup in term description. fixes #5021

git-svn-id: http://svn.automattic.com/wordpress/trunk@6141 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
ryan
ryan committed Sep 20, 2007
1 parent 315a28c commit 3542e01f199e6363cc7c2240acef375ea982d8fb
Showing with 9 additions and 1 deletion.
  1. +9 −1 wp-includes/default-filters.php
@@ -48,14 +48,22 @@
}
// Format strings for display.
-$filters = array('comment_author', 'term_name', 'term_description', 'link_name', 'link_description',
+$filters = array('comment_author', 'term_name', 'link_name', 'link_description',
'link_notes', 'bloginfo', 'wp_title');
foreach ( $filters as $filter ) {
add_filter($filter, 'wptexturize');
add_filter($filter, 'convert_chars');
add_filter($filter, 'wp_specialchars');
}
+// Format text area for display.
+$filters = array('term_description');
+foreach ( $filters as $filter ) {
+ add_filter($filter, 'wptexturize');
+ add_filter($filter, 'convert_chars');
+ add_filter($filter, 'wpautop');
+}
+
// Format for RSS
$filters = array('term_name_rss');
foreach ( $filters as $filter ) {

0 comments on commit 3542e01

Please sign in to comment.