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
+1 -1
View File
@@ -18,7 +18,7 @@ function mce_escape($text) {
global $language;
if ( 'en' == $language ) return $text;
else return js_escape($text);
else return esc_js($text);
}
$lang = 'tinyMCE.addI18n({' . $language . ':{