WordPress.org

Make WordPress Core

Ticket #37027: post.php.patch

File post.php.patch, 590 bytes (added by Ninos Ego, 3 years ago)
  • wp-includes/post.php

     
    30813081                $post_name = $post_before->post_name;
    30823082        }
    30833083
    3084         $maybe_empty = 'attachment' !== $post_type
     3084        $maybe_empty = 'attachment' !== $post_type && ! in_array( $postarr['post_status'], array( 'inherit', 'draft', 'trash', 'auto-draft' ) )
    30853085                && ! $post_content && ! $post_title && ! $post_excerpt
    30863086                && post_type_supports( $post_type, 'editor' )
    30873087                && post_type_supports( $post_type, 'title' )