wp_just_in_time_script_localization

The timeline below displays how wordpress function wp_just_in_time_script_localization has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.5

/**
 * Loads localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 *
 * @global array $shortcode_tags
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
    wp_localize_script('mce-view', 'mceViewL10n', array('shortcodes' => (!empty($GLOBALS['shortcode_tags'])) ? array_keys($GLOBALS['shortcode_tags']) : array()));
    wp_localize_script('word-count', 'wordCountL10n', array('type' => wp_get_word_count_type(), 'shortcodes' => (!empty($GLOBALS['shortcode_tags'])) ? array_keys($GLOBALS['shortcode_tags']) : array()));
}

WordPress Version: 6.2

/**
 * Loads localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
    wp_localize_script('mce-view', 'mceViewL10n', array('shortcodes' => (!empty($GLOBALS['shortcode_tags'])) ? array_keys($GLOBALS['shortcode_tags']) : array()));
    wp_localize_script('word-count', 'wordCountL10n', array('type' => wp_get_word_count_type(), 'shortcodes' => (!empty($GLOBALS['shortcode_tags'])) ? array_keys($GLOBALS['shortcode_tags']) : array()));
}

WordPress Version: 6.1

/**
 * Loads localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
    wp_localize_script('mce-view', 'mceViewL10n', array('shortcodes' => (!empty($GLOBALS['shortcode_tags'])) ? array_keys($GLOBALS['shortcode_tags']) : array()));
    wp_localize_script('word-count', 'wordCountL10n', array(
        /*
         * translators: If your word count is based on single characters (e.g. East Asian characters),
         * enter 'characters_excluding_spaces' or 'characters_including_spaces'. Otherwise, enter 'words'.
         * Do not translate into your own language.
         */
        'type' => _x('words', 'Word count type. Do not translate!'),
        'shortcodes' => (!empty($GLOBALS['shortcode_tags'])) ? array_keys($GLOBALS['shortcode_tags']) : array(),
    ));
}

WordPress Version: 4.9

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
    wp_localize_script('mce-view', 'mceViewL10n', array('shortcodes' => (!empty($GLOBALS['shortcode_tags'])) ? array_keys($GLOBALS['shortcode_tags']) : array()));
    wp_localize_script('word-count', 'wordCountL10n', array(
        /*
         * translators: If your word count is based on single characters (e.g. East Asian characters),
         * enter 'characters_excluding_spaces' or 'characters_including_spaces'. Otherwise, enter 'words'.
         * Do not translate into your own language.
         */
        'type' => _x('words', 'Word count type. Do not translate!'),
        'shortcodes' => (!empty($GLOBALS['shortcode_tags'])) ? array_keys($GLOBALS['shortcode_tags']) : array(),
    ));
}

WordPress Version: .10

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
    wp_localize_script('mce-view', 'mceViewL10n', array('shortcodes' => (!empty($GLOBALS['shortcode_tags'])) ? array_keys($GLOBALS['shortcode_tags']) : array()));
}

WordPress Version: 4.7

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
}

WordPress Version: 6.7

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
    wp_localize_script('mce-view', 'mceViewL10n', array('shortcodes' => (!empty($GLOBALS['shortcode_tags'])) ? array_keys($GLOBALS['shortcode_tags']) : array()));
}

WordPress Version: 6.3

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
}

WordPress Version: .20

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
    wp_localize_script('mce-view', 'mceViewL10n', array('shortcodes' => (!empty($GLOBALS['shortcode_tags'])) ? array_keys($GLOBALS['shortcode_tags']) : array()));
}

WordPress Version: 6.2

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
}

WordPress Version: .10

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
    wp_localize_script('mce-view', 'mceViewL10n', array('shortcodes' => (!empty($GLOBALS['shortcode_tags'])) ? array_keys($GLOBALS['shortcode_tags']) : array()));
}

WordPress Version: 5.4

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
}

WordPress Version: .30

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
    wp_localize_script('mce-view', 'mceViewL10n', array('shortcodes' => (!empty($GLOBALS['shortcode_tags'])) ? array_keys($GLOBALS['shortcode_tags']) : array()));
}

WordPress Version: 5.3

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
}

WordPress Version: .20

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
    wp_localize_script('mce-view', 'mceViewL10n', array('shortcodes' => (!empty($GLOBALS['shortcode_tags'])) ? array_keys($GLOBALS['shortcode_tags']) : array()));
}

WordPress Version: 5.2

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
}

WordPress Version: .10

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
    wp_localize_script('mce-view', 'mceViewL10n', array('shortcodes' => (!empty($GLOBALS['shortcode_tags'])) ? array_keys($GLOBALS['shortcode_tags']) : array()));
}

WordPress Version: 4.4

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
}

WordPress Version: .30

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
    wp_localize_script('mce-view', 'mceViewL10n', array('shortcodes' => (!empty($GLOBALS['shortcode_tags'])) ? array_keys($GLOBALS['shortcode_tags']) : array()));
}

WordPress Version: 4.3

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
}

WordPress Version: .20

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
    wp_localize_script('mce-view', 'mceViewL10n', array('shortcodes' => (!empty($GLOBALS['shortcode_tags'])) ? array_keys($GLOBALS['shortcode_tags']) : array()));
}

WordPress Version: 4.2

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
}

WordPress Version: .11

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
    wp_localize_script('mce-view', 'mceViewL10n', array('shortcodes' => (!empty($GLOBALS['shortcode_tags'])) ? array_keys($GLOBALS['shortcode_tags']) : array()));
}

WordPress Version: 3.4

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
}

WordPress Version: .30

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
    wp_localize_script('mce-view', 'mceViewL10n', array('shortcodes' => (!empty($GLOBALS['shortcode_tags'])) ? array_keys($GLOBALS['shortcode_tags']) : array()));
}

WordPress Version: 3.3

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
}

WordPress Version: .20

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
    wp_localize_script('mce-view', 'mceViewL10n', array('shortcodes' => (!empty($GLOBALS['shortcode_tags'])) ? array_keys($GLOBALS['shortcode_tags']) : array()));
}

WordPress Version: 3.2

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
}

WordPress Version: .12

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
    wp_localize_script('mce-view', 'mceViewL10n', array('shortcodes' => (!empty($GLOBALS['shortcode_tags'])) ? array_keys($GLOBALS['shortcode_tags']) : array()));
}

WordPress Version: 2.4

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
}

WordPress Version: .30

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
    wp_localize_script('mce-view', 'mceViewL10n', array('shortcodes' => (!empty($GLOBALS['shortcode_tags'])) ? array_keys($GLOBALS['shortcode_tags']) : array()));
}

WordPress Version: 2.3

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
}

WordPress Version: .20

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
    wp_localize_script('mce-view', 'mceViewL10n', array('shortcodes' => (!empty($GLOBALS['shortcode_tags'])) ? array_keys($GLOBALS['shortcode_tags']) : array()));
}

WordPress Version: 2.2

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
}

WordPress Version: .16

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
    wp_localize_script('mce-view', 'mceViewL10n', array('shortcodes' => (!empty($GLOBALS['shortcode_tags'])) ? array_keys($GLOBALS['shortcode_tags']) : array()));
}

WordPress Version: 1.5

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
}

WordPress Version: .40

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
    wp_localize_script('mce-view', 'mceViewL10n', array('shortcodes' => (!empty($GLOBALS['shortcode_tags'])) ? array_keys($GLOBALS['shortcode_tags']) : array()));
}

WordPress Version: 1.4

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
}

WordPress Version: .30

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
    wp_localize_script('mce-view', 'mceViewL10n', array('shortcodes' => (!empty($GLOBALS['shortcode_tags'])) ? array_keys($GLOBALS['shortcode_tags']) : array()));
}

WordPress Version: 1.3

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
}

WordPress Version: .20

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
    wp_localize_script('mce-view', 'mceViewL10n', array('shortcodes' => (!empty($GLOBALS['shortcode_tags'])) ? array_keys($GLOBALS['shortcode_tags']) : array()));
}

WordPress Version: 1.2

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
}

WordPress Version: .19

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
    wp_localize_script('mce-view', 'mceViewL10n', array('shortcodes' => (!empty($GLOBALS['shortcode_tags'])) ? array_keys($GLOBALS['shortcode_tags']) : array()));
}

WordPress Version: 0.4

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
}

WordPress Version: .30

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
    wp_localize_script('mce-view', 'mceViewL10n', array('shortcodes' => (!empty($GLOBALS['shortcode_tags'])) ? array_keys($GLOBALS['shortcode_tags']) : array()));
}

WordPress Version: 0.3

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
}

WordPress Version: .20

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
    wp_localize_script('mce-view', 'mceViewL10n', array('shortcodes' => (!empty($GLOBALS['shortcode_tags'])) ? array_keys($GLOBALS['shortcode_tags']) : array()));
}

WordPress Version: 0.2

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
}

WordPress Version: .19

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
    wp_localize_script('mce-view', 'mceViewL10n', array('shortcodes' => (!empty($GLOBALS['shortcode_tags'])) ? array_keys($GLOBALS['shortcode_tags']) : array()));
}

WordPress Version: 3.9

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    wp_localize_script('autosave', 'autosaveL10n', array('autosaveInterval' => AUTOSAVE_INTERVAL, 'blog_id' => get_current_blog_id()));
}

WordPress Version: 3.7

/**
 * Load localized data on print rather than initialization.
 *
 * These localizations require information that may not be loaded even by init.
 *
 * @since 2.5.0
 */
function wp_just_in_time_script_localization()
{
    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.'), 'blog_id' => get_current_blog_id()));
}