WordPress.org

Make WordPress Core

Ticket #11520: 11520.autosave.patch

File 11520.autosave.patch, 581 bytes (added by ocean90, 7 years ago)
  • wp-includes/script-loader.php

     
    553553 */
    554554function wp_just_in_time_script_localization() {
    555555
    556         wp_add_script_data( 'autosave', 'autosaveL10n', array(
     556        wp_localize_script( 'autosave', 'autosaveL10n', array(
    557557                'autosaveInterval' => AUTOSAVE_INTERVAL,
    558558                'savingText' => __('Saving Draft…'),
    559559                'saveAlert' => __('The changes you made will be lost if you navigate away from this page.')