[wp-trac] [WordPress Trac] #5177: WP_Scripts should localize first, load script second

WordPress Trac wp-trac at lists.automattic.com
Wed Oct 10 18:24:50 GMT 2007


#5177: WP_Scripts should localize first, load script second
----------------------+-----------------------------------------------------
 Reporter:  mdawaffe  |       Owner:  anonymous       
     Type:  defect    |      Status:  new             
 Priority:  normal    |   Milestone:  2.4             
Component:  General   |     Version:  2.3             
 Severity:  normal    |    Keywords:  has-patch commit
----------------------+-----------------------------------------------------
 Currently, WP_Scripts::print_scripts() loads a javascript file, and the
 echoes out the localized strings.

 It should first echo out the localized strings and then load the
 javascript file, so that the javascript file has immediate access to those
 strings.

 Attached.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5177>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list