WordPress.org

Make WordPress Core

Changeset 35621


Ignore:
Timestamp:
11/11/2015 10:48:55 PM (5 years ago)
Author:
wonderboymusic
Message:

Posts: allow empty posts to be deleted - $maybe_empty should not be set to true for updates.

Props DrewAPicture.
Fixes #30775.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post-functions.php

    r35543 r35621  
    29522952    $maybe_empty = 'attachment' !== $post_type
    29532953        && ! $post_content && ! $post_title && ! $post_excerpt
     2954        && ! $update
    29542955        && post_type_supports( $post_type, 'editor' )
    29552956        && post_type_supports( $post_type, 'title' )
Note: See TracChangeset for help on using the changeset viewer.