Move an unsightly semicolon to where it belongs in wp_localize_script(), props tw2113, fixes #19830
git-svn-id: http://svn.automattic.com/wordpress/trunk@19832 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3a6154bc1f
commit
909e20ed27
|
@ -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