diff --git a/wp-includes/post.php b/wp-includes/post.php index 94a450f438..5ebf42f89d 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -3806,7 +3806,7 @@ function wp_update_post( $postarr = array(), $wp_error = false ) { } if ( $postarr['post_type'] == 'attachment' ) { - return wp_insert_attachment( $postarr ); + return wp_insert_attachment( $postarr, false, 0, $wp_error ); } return wp_insert_post( $postarr, $wp_error ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 6eb435a68b..d042ac7d97 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-42382'; +$wp_version = '5.0-alpha-42383'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.