Opened 16 years ago
Closed 16 years ago
#2607 closed enhancement (fixed)
[patch] Use wp_localize_script() to localise javascript strings
| Reported by: | DJPaul | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.2.6 |
| Component: | Core | Version: | |
| Severity: | 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
@
16 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 :)
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
v1