From 0839d27da92c8ee95cbd3322a1850000047b008b Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Wed, 20 Jan 2021 04:58:20 +0000 Subject: [PATCH] Media: Ensure `get_post_status()` does not contain half a comment. Removes a misplaced comment, follow up to [49985]. Props SergeyBiryukov. Fixes #52326. git-svn-id: https://develop.svn.wordpress.org/trunk@49986 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/post.php | 2 -- 1 file changed, 2 deletions(-) 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 ) ||