Media: Ensure get_post_status() does not contain half a comment.
Removes a misplaced comment, follow up to [49985]. Props SergeyBiryukov. Fixes #52326. Built from https://develop.svn.wordpress.org/trunk@49986 git-svn-id: http://core.svn.wordpress.org/trunk@49687 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -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 ) ||
|
||||
|
||||
Reference in New Issue
Block a user