[wp-trac] [WordPress Trac] #11520: print_scripts_l10n() should use json_encode()
WordPress Trac
wp-trac at lists.automattic.com
Sat Sep 17 07:58:41 UTC 2011
#11520: print_scripts_l10n() should use json_encode()
-------------------------+------------------------
Reporter: scribu | Owner: azaozz
Type: enhancement | Status: reviewing
Priority: normal | Milestone: 3.3
Component: JavaScript | Version:
Severity: critical | Resolution:
Keywords: revert |
-------------------------+------------------------
Comment (by SergeyBiryukov):
FWIW, I've noticed that non-ASCII characters are also escaped now:
3.2.1:
{{{
var commonL10n = {
warnDelete: "Вы собираетесь навсегда удалить выделенные объекты.\n
«Отмена» — оставить, «OK» — удалить."
};
}}}
3.3-trunk:
{{{
var commonL10n = {"warnDelete":"\u0412\u044b
\u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0435\u0441\u044c
\u043d\u0430\u0432\u0441\u0435\u0433\u0434\u0430
\u0443\u0434\u0430\u043b\u0438\u0442\u044c
\u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435
\u043e\u0431\u044a\u0435\u043a\u0442\u044b.\n
\u00ab\u041e\u0442\u043c\u0435\u043d\u0430\u00bb \u2014
\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c, \u00abOK\u00bb \u2014
\u0443\u0434\u0430\u043b\u0438\u0442\u044c."};
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11520#comment:62>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list