mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-25 09:28:42 +00:00
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:
parent
b3204a0b60
commit
f97aaf6ede
@ -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.')
|
||||
|
Loading…
x
Reference in New Issue
Block a user