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:
parent
4293dc03db
commit
4ef8b0384d
|
@ -156,6 +156,8 @@ function edit_post( $post_data = null ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$post_data = _wp_translate_postdata( true, $post_data );
|
$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) )
|
if ( is_wp_error($post_data) )
|
||||||
wp_die( $post_data->get_error_message() );
|
wp_die( $post_data->get_error_message() );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue