Make WordPress Core

Opened 11 years ago

Closed 11 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:


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.


Attachments (1)

5177.diff (543 bytes) - added by mdawaffe 11 years ago.

Download all attachments as: .zip

Change History (2)

11 years ago

#1 @ryan
11 years ago

  • Resolution set to fixed
  • Status changed from new to closed

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

Note: See TracTickets for help on using tickets.