Changeset 19305
- Timestamp:
- 11/15/2011 09:19:29 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r19283 r19305 2440 2440 } 2441 2441 2442 if ( ('' == $post_content) && ('' == $post_title) && ('' == $post_excerpt) && ('attachment' != $post_type) ) { 2442 $maybe_empty = ! $post_content && ! $post_title && ! $post_excerpt && post_type_supports( $post_type, 'editor' ) 2443 && post_type_supports( $post_type, 'title' ) && post_type_supports( $post_type, 'excerpt' ); 2444 if ( apply_filters( 'wp_insert_post_empty_content', $maybe_empty, $postarr ) ) { 2443 2445 if ( $wp_error ) 2444 return new WP_Error( 'empty_content', __('Content, title, and excerpt are empty.'));2446 return new WP_Error( 'empty_content', __( 'Content, title, and excerpt are empty.' ) ); 2445 2447 else 2446 2448 return 0;
Note: See TracChangeset
for help on using the changeset viewer.