diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index 4dc46ac3df..cf8c8e9f01 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -1667,7 +1667,7 @@ function post_preview() { } else { $is_autosave = true; - if ( 'auto-draft' == $_POST['post_status'] ) + if ( isset( $_POST['post_status'] ) && 'auto-draft' == $_POST['post_status'] ) $_POST['post_status'] = 'draft'; $saved_post_id = wp_create_post_autosave( $post->ID ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 209cc9e719..8eea70f18d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.2-beta2-31895'; +$wp_version = '4.2-beta2-31896'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.