Make WordPress Core

Opened 17 years ago

Closed 17 years ago

#5177 closed defect (bug) (fixed)

WP_Scripts should localize first, load script second

Reported by: mdawaffe's profile 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)

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

Download all attachments as: .zip

Change History (2)

@mdawaffe
17 years ago

#1 @ryan
17 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.