esc_js(). Shorter, follows new escaping naming convention.

git-svn-id: http://svn.automattic.com/wordpress/trunk@11245 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith
2009-05-09 07:27:22 +00:00
parent e8025581b3
commit d7b015645d
19 changed files with 52 additions and 35 deletions

View File

@@ -1013,7 +1013,7 @@ function sanitize_term_field($field, $value, $term_id, $taxonomy, $context) {
if ( 'attribute' == $context )
$value = esc_attr($value);
else if ( 'js' == $context )
$value = js_escape($value);
$value = esc_js($value);
return $value;
}