[wp-trac] [WordPress Trac] #19830: wp_localize_script() combines statements improperly
WordPress Trac
wp-trac at lists.automattic.com
Sat Jan 14 17:45:46 UTC 2012
#19830: wp_localize_script() combines statements improperly
--------------------------+------------------------------
Reporter: TobiasBg | Owner: azaozz
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.3
Severity: minor | Resolution:
Keywords: needs-patch |
--------------------------+------------------------------
Comment (by azaozz):
Generally having two consecutive semicolons in JS is acceptable (not only
at the end of line). Many JS libraries still add a semicolon at the very
beginning (when minimized) to prevent concatenation errors.
The second semicolon could be moved to
[http://core.trac.wordpress.org/browser/trunk/wp-includes/class.wp-
scripts.php#L146 L:146] as it matters only when there's
`'l10n_print_after'` part.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19830#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list