Make WordPress Core


Ignore:
Timestamp:
05/16/2011 06:17:44 AM (13 years ago)
Author:
azaozz
Message:

Fix autosave and word count for DFW HTML editor, always update word count on autosave, see #17136

File:
1 edited

Legend:

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

    r17935 r17936  
    9797    $scripts->add_data( 'editor', 'group', 1 );
    9898
    99     $scripts->add( 'wp-fullscreen', "/wp-admin/js/wp-fullscreen$suffix.js", array('jquery'), '20110514' );
     99    $scripts->add( 'wp-fullscreen', "/wp-admin/js/wp-fullscreen$suffix.js", array('jquery'), '20110515' );
    100100    $scripts->add_data( 'wp-fullscreen', 'group', 1 );
    101101
     
    110110    ) );
    111111
    112     $scripts->add( 'autosave', "/wp-includes/js/autosave$suffix.js", array('schedule', 'wp-ajax-response'), '20110514' );
     112    $scripts->add( 'autosave', "/wp-includes/js/autosave$suffix.js", array('schedule', 'wp-ajax-response'), '20110515' );
    113113    $scripts->add_data( 'autosave', 'group', 1 );
    114114
     
    328328        $scripts->add_data( 'postbox', 'group', 1 );
    329329
    330         $scripts->add( 'post', "/wp-admin/js/post$suffix.js", array('suggest', 'wp-lists', 'postbox'), '20110512' );
     330        $scripts->add( 'post', "/wp-admin/js/post$suffix.js", array('suggest', 'wp-lists', 'postbox'), '20110515' );
    331331        $scripts->add_data( 'post', 'group', 1 );
    332332        $scripts->localize( 'post', 'postL10n', array(
     
    377377        $scripts->add_data( 'admin-widgets', 'group', 1 );
    378378
    379         $scripts->add( 'word-count', "/wp-admin/js/word-count$suffix.js", array( 'jquery' ), '20110424' );
     379        $scripts->add( 'word-count', "/wp-admin/js/word-count$suffix.js", array( 'jquery' ), '20110515' );
    380380        $scripts->add_data( 'word-count', 'group', 1 );
    381         $scripts->localize( 'word-count', 'wordCountL10n', array(
    382             'count' => __('Word count: %d'),
    383             'l10n_print_after' => 'try{convertEntities(wordCountL10n);}catch(e){};'
    384         ));
    385381
    386382        $scripts->add( 'theme', "/wp-admin/js/theme$suffix.js", array( 'thickbox' ), '20110118' );
     
    487483    $no_suffix = array( 'farbtastic' );
    488484
    489     $styles->add( 'wp-admin', "/wp-admin/css/wp-admin$suffix.css", array(), '20110512b' );
     485    $styles->add( 'wp-admin', "/wp-admin/css/wp-admin$suffix.css", array(), '20110515' );
    490486
    491487    $styles->add( 'ie', "/wp-admin/css/ie$suffix.css", array(), '20101102' );
     
    565561    wp_localize_script( 'autosave', 'autosaveL10n', array(
    566562        'autosaveInterval' => AUTOSAVE_INTERVAL,
    567         'previewPageText' => __('Preview this Page'),
    568         'previewPostText' => __('Preview this Post'),
    569         'requestFile' => admin_url('admin-ajax.php'),
    570563        'savingText' => __('Saving Draft…'),
    571564        'saveAlert' => __('The changes you made will be lost if you navigate away from this page.'),
Note: See TracChangeset for help on using the changeset viewer.