mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 02:34:38 +00:00
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:
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user