Opened 14 years ago
Closed 14 years ago
#2607 closed enhancement (fixed)
[patch] Use wp_localize_script() to localise javascript strings
Reported by: | DJPaul | Owned by: | |
---|---|---|---|
Milestone: | 1.2.6 | Priority: | normal |
Severity: | Version: | ||
Component: | Core | Keywords: | has-patch |
Cc: |
Description
Using wp_localize_script() improves upon the current behaviour of squirting out javascript variables with an wp_footer hook; may as well use the WordPress' methods for this rather than reinventing the wheel.
Attachments (2)
Change History (7)
#1
@
14 years ago
Love it. Been meaning to attack that for months.
For php code comments, I'm trying to phpDoc the functions as I go, and change the in-function comments from block level to inline. Comments outside of functions should be phpDoc'ed as much as possible as we go, with a goal of 100% when we start ripping through 1.3.
Good work on this patch :)
v1