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:
@@ -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 . ':{
|
||||
|
||||
Reference in New Issue
Block a user