From f97aaf6ede6d6ffacd94d967534287be12037446 Mon Sep 17 00:00:00 2001 From: azaozz Date: Sun, 31 Jul 2011 13:59:23 +0000 Subject: [PATCH] Completely remove wp_add_script_data(), props ocean90, see #11520 git-svn-id: http://svn.automattic.com/wordpress/trunk@18491 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/script-loader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index 9c1705da6..97f41e562 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -553,7 +553,7 @@ function wp_prototype_before_jquery( $js_array ) { */ function wp_just_in_time_script_localization() { - wp_add_script_data( 'autosave', 'autosaveL10n', array( + wp_localize_script( 'autosave', 'autosaveL10n', array( 'autosaveInterval' => AUTOSAVE_INTERVAL, 'savingText' => __('Saving Draft…'), 'saveAlert' => __('The changes you made will be lost if you navigate away from this page.')