Make WordPress Core

Changeset 18491


Ignore:
Timestamp:
07/31/2011 01:59:23 PM (13 years ago)
Author:
azaozz
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/script-loader.php

    r18484 r18491  
    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…'),
Note: See TracChangeset for help on using the changeset viewer.