Ticket #27683: 27683.diff
File 27683.diff, 688 bytes (added by , 11 years ago) |
---|
-
src/wp-includes/post.php
3133 3133 * @param bool $maybe_empty Whether the post should be considered "empty". 3134 3134 * @param array $postarr Array of post data. 3135 3135 */ 3136 if ( apply_filters( 'wp_insert_post_empty_content', $maybe_empty, $postarr ) ) {3136 if ( $id = apply_filters( 'wp_insert_post_empty_content', $maybe_empty, $postarr ) ) { 3137 3137 if ( $wp_error ) { 3138 3138 return new WP_Error( 'empty_content', __( 'Content, title, and excerpt are empty.' ) ); 3139 3139 } else { 3140 return 0;3140 return $id; 3141 3141 } 3142 3142 } 3143 3143