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

git-svn-id: https://develop.svn.wordpress.org/trunk@11245 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith
2009-05-09 07:27:22 +00:00
parent 90ef467838
commit 8d6cb67233
19 changed files with 52 additions and 35 deletions
+1 -1
View File
@@ -905,7 +905,7 @@ function sanitize_post_field($field, $value, $post_id, $context) {
if ( 'attribute' == $context )
$value = esc_attr($value);
else if ( 'js' == $context )
$value = js_escape($value);
$value = esc_js($value);
return $value;
}