Opened 17 years ago
Closed 17 years ago
#5177 closed defect (bug) (fixed)
WP_Scripts should localize first, load script second
Reported by: | mdawaffe | Owned by: | |
---|---|---|---|
Milestone: | 2.5 | Priority: | normal |
Severity: | normal | Version: | 2.3 |
Component: | General | Keywords: | has-patch commit |
Focuses: | 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 (1)
Change History (2)
Note: See
TracTickets for help on using
tickets.
(In [6218]) Output localized strings before outputting js. Props mdawaffe. fixes #5177 for trunk