mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-08 17:38:26 +01:00
Don't specialchars markup in term description. fixes #5021
git-svn-id: http://svn.automattic.com/wordpress/trunk@6141 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
315a28c4b5
commit
3542e01f19
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user