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

WordPress Trac wp-trac at lists.automattic.com
Fri Jul 29 10:39:26 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:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |
------------------------------------+------------------------

Comment (by westi):

 Replying to [comment:40 azaozz]:
 > Replying to [comment:39 westi]:
 > > Are we breaking any backward compatible behaviour here...
 >
 > No, adding second l10n array with the same name was replacing the first
 (never seen that happen but it was possible), now it appends it
 overwriting only conflicting keys.

 Cool - I was unsure from the commit message thanks for confirming.

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


More information about the wp-trac mailing list