Ticket #30775: 30775.diff
File 30775.diff, 682 bytes (added by , 5 years ago) |
---|
-
src/wp-includes/post-functions.php
2921 2921 * @param bool $maybe_empty Whether the post should be considered "empty". 2922 2922 * @param array $postarr Array of post data. 2923 2923 */ 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 ) ) { 2925 2925 if ( $wp_error ) { 2926 2926 return new WP_Error( 'empty_content', __( 'Content, title, and excerpt are empty.' ) ); 2927 2927 } else {