Move an unsightly semicolon to where it belongs in wp_localize_script(), props tw2113, fixes #19830

git-svn-id: https://develop.svn.wordpress.org/trunk@19832 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2012-02-06 18:52:57 +00:00
parent ff9916420e
commit 469745d625
1 changed files with 2 additions and 2 deletions

View File

@ -143,12 +143,12 @@ class WP_Scripts extends WP_Dependencies {
$script = "var $object_name = " . json_encode($l10n) . ';';
if ( !empty($after) )
$script .= "\n$after";
$script .= "\n$after;";
$data = $this->get_data( $handle, 'data' );
if ( !empty( $data ) )
$script = "$data;\n$script";
$script = "$data\n$script";
return $this->add_data( $handle, 'data', $script );
}