Handle manual saving of auto-drafts for Contributors without JavaScript. props jbsil. fixes #13133

git-svn-id: http://svn.automattic.com/wordpress/trunk@14551 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2010-05-10 21:21:42 +00:00
parent 4293dc03db
commit 4ef8b0384d
1 changed files with 2 additions and 0 deletions

View File

@ -156,6 +156,8 @@ function edit_post( $post_data = null ) {
}
$post_data = _wp_translate_postdata( true, $post_data );
if ( 'autosave' != $post_data['action'] && 'auto-draft' == $post_data['post_status'] )
$post_data['post_status'] = 'draft';
if ( is_wp_error($post_data) )
wp_die( $post_data->get_error_message() );