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

git-svn-id: https://develop.svn.wordpress.org/trunk@6141 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2007-09-20 18:23:33 +00:00
parent 8e3759d314
commit 59a07b76a9

View File

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