Autosave tags as well. Fixes #5359 props sembee

git-svn-id: https://develop.svn.wordpress.org/trunk@6373 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2007-12-11 20:30:22 +00:00
parent a5aa17b2fc
commit 7003316321
2 changed files with 2 additions and 0 deletions

View File

@ -388,6 +388,7 @@ case 'autosave' : // The name of this action is hardcoded in edit_post()
$_POST['post_excerpt'] = $_POST['excerpt'];
$_POST['post_status'] = 'draft';
$_POST['post_category'] = explode(",", $_POST['catslist']);
$_POST['tags_input'] = explode(",", $_POST['tags_input']);
if($_POST['post_type'] == 'page' || empty($_POST['post_category']))
unset($_POST['post_category']);

View File

@ -131,6 +131,7 @@ 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);
autosaveAjax.setVar("tags_input", form.tags_input.value);
if ( form.comment_status.checked )
autosaveAjax.setVar("comment_status", 'open');
if ( form.ping_status.checked )