Wordpress 3.6
[autoinstalls/wordpress.git] / wp-includes / class.wp-scripts.php
index f75929b4abf875beb27ab1f6f3f325b23ca27eb1..38f3f9fcf3b7c64d406877deab30a958f7200ae4 100644 (file)
@@ -133,6 +133,9 @@ class WP_Scripts extends WP_Dependencies {
         * Localizes only if the script has already been added
         */
        function localize( $handle, $object_name, $l10n ) {
+               if ( $handle === 'jquery' )
+                       $handle = 'jquery-core';
+
                if ( is_array($l10n) && isset($l10n['l10n_print_after']) ) { // back compat, preserve the code in 'l10n_print_after' if present
                        $after = $l10n['l10n_print_after'];
                        unset($l10n['l10n_print_after']);