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

WordPress Trac wp-trac at lists.automattic.com
Sun Jul 24 22:39:05 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 scribu):

 Finally, we should continue to use 'script' and 'style', rather than 'js'
 and 'css'. So it would be wp_add_script_data() and wp_add_inline_style().

 Darn, keeping an API consistent is hard work. :)

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

More information about the wp-trac mailing list