wp_localize_script() combines statements improperly
|Reported by:||TobiasBg||Owned by:||azaozz|
|Severity:||minor||Keywords:||easy-fix has-patch commit|
When making multiple calls to wp_localize_script() on the same $handle, the individual JSONified objects are merged together with ;\n in this line.
However, each individual var statement has already been correctly terminated by a semicolon ; a few lines above.
Due to that, the resulting output has an extra semicolon after each but the last var statement (i.e. ;;).
Removing the semicolon from the string in line 151 should fix this.
Change History (10)
- Owner set to azaozz
- Severity changed from normal to minor
- Status changed from new to assigned
comment:4 SergeyBiryukov — 23 months ago
- Keywords easy-fix added
- Milestone changed from Awaiting Review to 3.4