diff --git a/src/wp-includes/functions.wp-scripts.php b/src/wp-includes/functions.wp-scripts.php
index f2cbdbf915..ea719df3f9 100644
--- a/src/wp-includes/functions.wp-scripts.php
+++ b/src/wp-includes/functions.wp-scripts.php
@@ -116,7 +116,8 @@ function wp_localize_script( $handle, $object_name, $l10n ) {
if ( ! did_action( 'init' ) )
_doing_it_wrong( __FUNCTION__, sprintf( __( 'Scripts and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s hooks.' ),
'wp_enqueue_scripts', 'admin_enqueue_scripts', 'login_enqueue_scripts' ), '3.3' );
- $wp_scripts = new WP_Scripts();
+
+ return false;
}
return $wp_scripts->localize( $handle, $object_name, $l10n );