diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index 9c1705da65..97f41e5622 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.')