mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 12:51:58 +00:00
s/attribute_escape/attr/. see #9650
git-svn-id: https://develop.svn.wordpress.org/trunk@11109 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -991,7 +991,7 @@ function sanitize_term_field($field, $value, $term_id, $taxonomy, $context) {
|
||||
if ( 'description' == $field )
|
||||
$value = format_to_edit($value);
|
||||
else
|
||||
$value = attribute_escape($value);
|
||||
$value = attr($value);
|
||||
} else if ( 'db' == $context ) {
|
||||
$value = apply_filters("pre_term_$field", $value, $taxonomy);
|
||||
$value = apply_filters("pre_${taxonomy}_$field", $value);
|
||||
@@ -1009,7 +1009,7 @@ function sanitize_term_field($field, $value, $term_id, $taxonomy, $context) {
|
||||
}
|
||||
|
||||
if ( 'attribute' == $context )
|
||||
$value = attribute_escape($value);
|
||||
$value = attr($value);
|
||||
else if ( 'js' == $context )
|
||||
$value = js_escape($value);
|
||||
|
||||
@@ -2260,7 +2260,7 @@ function get_the_taxonomies($post = 0) {
|
||||
$links = array();
|
||||
|
||||
foreach ( $terms as $term )
|
||||
$links[] = "<a href='" . attribute_escape(get_term_link($term, $taxonomy)) . "'>$term->name</a>";
|
||||
$links[] = "<a href='" . attr(get_term_link($term, $taxonomy)) . "'>$term->name</a>";
|
||||
|
||||
if ( $links )
|
||||
$taxonomies[$taxonomy] = wp_sprintf($t['template'], $t['label'], $links, $terms);
|
||||
|
||||
Reference in New Issue
Block a user