mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-30 18:24:31 +00:00
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:
@@ -60,7 +60,7 @@ class WP_Scripts extends WP_Dependencies {
|
||||
$after = $val;
|
||||
continue;
|
||||
}
|
||||
$data .= "$eol\t$var: \"" . js_escape( $val ) . '"';
|
||||
$data .= "$eol\t$var: \"" . esc_js( $val ) . '"';
|
||||
$eol = ",\n";
|
||||
}
|
||||
$data .= "\n};\n";
|
||||
|
||||
Reference in New Issue
Block a user