Make WordPress Core

Changeset 4098


Ignore:
Timestamp:
08/15/2006 09:07:13 PM (19 years ago)
Author:
ryan
Message:

Update action after generating a new nonce to reduce race condition window.

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/autosave.js.php

    r4086 r4098  
    4242        $('post_ID').name = "post_ID";
    4343        $('post_ID').value = res;
    44         $('hiddenaction').value = 'editpost';
    4544        // We need new nonces
    4645        nonceAjax = new sack();
     
    5453        nonceAjax.method = "POST";
    5554        nonceAjax.runAJAX();
    56        
     55        $('hiddenaction').value = 'editpost';
    5756    }
    5857    $('autosave').innerHTML = message;
  • trunk/wp-includes/script-loader.php

    r4090 r4098  
    1919        $this->add( 'wp_tiny_mce', '/wp-includes/js/tinymce/tiny_mce_config.php', array('tiny_mce'), '04162006' );
    2020        $this->add( 'prototype', '/wp-includes/js/prototype.js', false, '1.5.0');
    21         $this->add( 'autosave', '/wp-includes/js/autosave.js.php', array('prototype', 'sack'), '4086');
     21        $this->add( 'autosave', '/wp-includes/js/autosave.js.php', array('prototype', 'sack'), '4096');
    2222        if ( is_admin() ) {
    2323            $this->add( 'dbx-admin-key', '/wp-admin/dbx-admin-key-js.php', array('dbx'), '3651' );
Note: See TracChangeset for help on using the changeset viewer.