Changeset 4185

Show
Ignore:
Timestamp:
09/12/06 00:01:18 (2 years ago)
Author:
ryan
Message:

Add ping status to autosave post array. Props skeltoac.

Files:

Legend:

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

    r4109 r4185  
    104104    autosaveAjax.setVar("post_title", form.post_title.value); 
    105105    autosaveAjax.setVar("post_type", form.post_type.value); 
     106    if ( form.comment_status.checked ) 
     107        autosaveAjax.setVar("comment_status", 'open'); 
     108    if ( form.ping_status.checked ) 
     109        autosaveAjax.setVar("ping_status", 'open'); 
    106110    if(form.excerpt) 
    107111        autosaveAjax.setVar("excerpt", form.excerpt.value);      
  • trunk/wp-includes/script-loader.php

    r4163 r4185  
    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'), '4107'); 
     21        $this->add( 'autosave', '/wp-includes/js/autosave.js.php', array('prototype', 'sack'), '4183'); 
    2222        if ( is_admin() ) { 
    2323            $this->add( 'dbx-admin-key', '/wp-admin/dbx-admin-key-js.php', array('dbx'), '3651' );