mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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:
parent
56939ff70e
commit
0839d27da9
@ -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 ) ||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user