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:
Peter Wilson 2021-01-20 05:00:01 +00:00
parent 9c2c78b6c8
commit ce5a508734
2 changed files with 1 additions and 3 deletions

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

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.7-alpha-49985';
$wp_version = '5.7-alpha-49986';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.