WordPress.org

Make WordPress Core

Ticket #30775: 30775.diff

File 30775.diff, 682 bytes (added by wonderboymusic, 5 years ago)
  • src/wp-includes/post-functions.php

     
    29212921         * @param bool  $maybe_empty Whether the post should be considered "empty".
    29222922         * @param array $postarr     Array of post data.
    29232923         */
    2924         if ( apply_filters( 'wp_insert_post_empty_content', $maybe_empty, $postarr ) ) {
     2924        if ( ! $update && apply_filters( 'wp_insert_post_empty_content', $maybe_empty, $postarr ) ) {
    29252925                if ( $wp_error ) {
    29262926                        return new WP_Error( 'empty_content', __( 'Content, title, and excerpt are empty.' ) );
    29272927                } else {