Add ping status to autosave post array. Props skeltoac.

git-svn-id: http://svn.automattic.com/wordpress/trunk@4185 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-09-12 00:01:18 +00:00
parent f666759471
commit b6ce612ffe
2 changed files with 5 additions and 1 deletions

View File

@ -103,6 +103,10 @@ function autosave() {
autosaveAjax.setVar("post_ID", $("post_ID").value);
autosaveAjax.setVar("post_title", form.post_title.value);
autosaveAjax.setVar("post_type", form.post_type.value);
if ( form.comment_status.checked )
autosaveAjax.setVar("comment_status", 'open');
if ( form.ping_status.checked )
autosaveAjax.setVar("ping_status", 'open');
if(form.excerpt)
autosaveAjax.setVar("excerpt", form.excerpt.value);

View File

@ -18,7 +18,7 @@ class WP_Scripts {
$this->add( 'tiny_mce', '/wp-includes/js/tinymce/tiny_mce_gzip.php', false, '08152006' );
$this->add( 'wp_tiny_mce', '/wp-includes/js/tinymce/tiny_mce_config.php', array('tiny_mce'), '04162006' );
$this->add( 'prototype', '/wp-includes/js/prototype.js', false, '1.5.0');
$this->add( 'autosave', '/wp-includes/js/autosave.js.php', array('prototype', 'sack'), '4107');
$this->add( 'autosave', '/wp-includes/js/autosave.js.php', array('prototype', 'sack'), '4183');
if ( is_admin() ) {
$this->add( 'dbx-admin-key', '/wp-admin/dbx-admin-key-js.php', array('dbx'), '3651' );
$this->add( 'listman', '/wp-admin/list-manipulation-js.php', array('sack', 'fat'), '4042' ); // Make changeset # the correct one