From 909e20ed279a80c36f9a78c06fe77f5da5a23a09 Mon Sep 17 00:00:00 2001 From: azaozz Date: Mon, 6 Feb 2012 18:52:57 +0000 Subject: [PATCH] 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 --- wp-includes/class.wp-scripts.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class.wp-scripts.php b/wp-includes/class.wp-scripts.php index d4f81925c..f12f0cac1 100644 --- a/wp-includes/class.wp-scripts.php +++ b/wp-includes/class.wp-scripts.php @@ -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 ); }