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:
parent
ff9916420e
commit
469745d625
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue