From 4ef8b0384db6f6e03e352f35cb6e3440f1975a9d Mon Sep 17 00:00:00 2001 From: markjaquith Date: Mon, 10 May 2010 21:21:42 +0000 Subject: [PATCH] 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 --- wp-admin/includes/post.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index 93a9ebe069..bf5ceb1cd8 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -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() );