[wp-trac] [WordPress Trac] #19830: wp_localize_script() combines statements improperly

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 14 20:22:48 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 TobiasBg):

 Yes, that's true, as the two semicolons are not causing any
 issues/warnings/errors. It's just looking weird, and with just one
 semicolon the code looks cleaner (I feel).

 Moving it from line 151 to 146 looks good to me, as the only time when the
 semicolon could matter would be, if the semicolon at the end of the legacy
 {{{l10n_print_after}}} is missing.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19830#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list