WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/24/2008 09:19:42 PM (12 years ago)
Author:
ryan
Message:

check_ajax_referer() should look for *only* the auth_cookie, not others that look like they match. Autosave should know that an ajax response of -1 or 0 is a failure. Props mdawaffe

File:
1 edited

Legend:

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

    r6633 r6649  
    3838        $this->add( 'prototype', '/wp-includes/js/prototype.js', false, '1.6');
    3939
    40         $this->add( 'autosave', '/wp-includes/js/autosave.js', array('jquery', 'schedule'), '20080104');
     40        $this->add( 'autosave', '/wp-includes/js/autosave.js', array('prototype', 'sack'), '20080124');
    4141        $this->localize( 'autosave', 'autosaveL10n', array(
    4242            'autosaveInterval' => apply_filters('autosave_interval', '120'),
    4343            'errorText' => __('Error: %response%'),
     44            'failText' => __('Error: Autosave Failed.'),
    4445            'saveText' => __('Saved at %time%.'),
    4546            'requestFile' => get_option( 'siteurl' ) . '/wp-admin/admin-ajax.php',
Note: See TracChangeset for help on using the changeset viewer.