Ticket #5177 (closed defect (bug): fixed)

Opened 1 year ago

Last modified 1 year ago

WP_Scripts should localize first, load script second

Reported by: mdawaffe Assigned to: anonymous
Priority: normal Milestone: 2.5
Component: General Version: 2.3
Severity: normal Keywords: has-patch commit
Cc:

Description

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.

Attachments

5177.diff (0.5 kB) - added by mdawaffe on 10/10/07 18:25:09.

Change History

10/10/07 18:25:09 changed by mdawaffe

  • attachment 5177.diff added.

10/10/07 18:51:12 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

(In [6218]) Output localized strings before outputting js. Props mdawaffe. fixes #5177 for trunk