From 59a07b76a9639fdb2fa26c966ebde1d599948740 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 20 Sep 2007 18:23:33 +0000 Subject: [PATCH] Don't specialchars markup in term description. fixes #5021 git-svn-id: https://develop.svn.wordpress.org/trunk@6141 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/default-filters.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/wp-includes/default-filters.php b/wp-includes/default-filters.php index 5fba632ef4..9202aa27a4 100644 --- a/wp-includes/default-filters.php +++ b/wp-includes/default-filters.php @@ -48,7 +48,7 @@ foreach ( $filters as $filter ) { } // 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'); @@ -56,6 +56,14 @@ foreach ( $filters as $filter ) { 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 ) {