mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-01 21:21:24 +01:00
Autosave tags as well. Fixes #5359 props sembee
git-svn-id: http://svn.automattic.com/wordpress/trunk@6373 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
fa98e055e8
commit
4c53026f96
@ -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…
Reference in New Issue
Block a user