mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00: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:
@@ -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']);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user