Posts: allow empty posts to be deleted - `$maybe_empty` should not be set to `true` for updates.
Props DrewAPicture. Fixes #30775. Built from https://develop.svn.wordpress.org/trunk@35621 git-svn-id: http://core.svn.wordpress.org/trunk@35585 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c8e0cd5c65
commit
415ab45b9f
|
@ -2951,6 +2951,7 @@ function wp_insert_post( $postarr, $wp_error = false ) {
|
|||
|
||||
$maybe_empty = 'attachment' !== $post_type
|
||||
&& ! $post_content && ! $post_title && ! $post_excerpt
|
||||
&& ! $update
|
||||
&& post_type_supports( $post_type, 'editor' )
|
||||
&& post_type_supports( $post_type, 'title' )
|
||||
&& post_type_supports( $post_type, 'excerpt' );
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4-beta3-35620';
|
||||
$wp_version = '4.4-beta3-35621';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue