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
This commit is contained in:
Peter Wilson 2021-01-20 04:58:20 +00:00
parent 56939ff70e
commit 0839d27da9

View File

@ -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 ) ||