[wp-trac] [WordPress Trac] #11520: print_scripts_l10n() should use json_encode()

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 1 23:38:57 UTC 2011


#11520: print_scripts_l10n() should use json_encode()
------------------------------+---------------------
 Reporter:  scribu            |       Owner:  azaozz
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  3.2
Component:  JavaScript        |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+---------------------

Comment (by scribu):

 [attachment:print_scripts_l10n.2.diff] also gets rid of the
 'l10n_print_after' hack, since it's already taken care of by
 json_encode().

 Wondering wether we could do away with l10n.dev.js entirely. I don't
 imagine plugins calling convertEntities() directly.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11520#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list