mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 12:51:58 +00:00
link_notes and term_description escaping fixes. Props garyc40. fixes #15454
git-svn-id: https://develop.svn.wordpress.org/trunk@17146 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1521,7 +1521,7 @@ function sanitize_term_field($field, $value, $term_id, $taxonomy, $context) {
|
||||
$value = apply_filters("edit_term_{$field}", $value, $term_id, $taxonomy);
|
||||
$value = apply_filters("edit_{$taxonomy}_{$field}", $value, $term_id);
|
||||
if ( 'description' == $field )
|
||||
$value = format_to_edit($value);
|
||||
$value = esc_html($value); // textarea_escaped
|
||||
else
|
||||
$value = esc_attr($value);
|
||||
} else if ( 'db' == $context ) {
|
||||
|
||||
Reference in New Issue
Block a user