Completely remove wp_add_script_data(), props ocean90, see #11520

git-svn-id: https://develop.svn.wordpress.org/trunk@18491 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2011-07-31 13:59:23 +00:00
parent c641a1d27a
commit 26c194af80
1 changed files with 1 additions and 1 deletions

View File

@ -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.')