Make WordPress Core


Ignore:
Timestamp:
09/12/2006 12:01:18 AM (20 years ago)
Author:
ryan
Message:

Add ping status to autosave post array. Props skeltoac.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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);             
Note: See TracChangeset for help on using the changeset viewer.