mirror of
git://develop.git.wordpress.org/
synced 2025-02-24 16:43:06 +01:00
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:
parent
a5aa17b2fc
commit
7003316321
@ -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']);
|
||||
|
||||
|
@ -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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user