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
This commit is contained in:
azaozz 2011-07-31 13:59:23 +00:00
parent b3204a0b60
commit f97aaf6ede

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