diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php index 95a74b75c5..a5bd9678bb 100644 --- a/src/wp-includes/post.php +++ b/src/wp-includes/post.php @@ -907,8 +907,6 @@ function get_post_status( $post = null ) { 'attachment' === $post->post_type && 'inherit' === $post_status ) { - // Attachment permitted statuses: 'inherit', , see wp_insert_post(). - if ( 0 === $post->post_parent || ! get_post( $post->post_parent ) ||