[wp-trac] [WordPress Trac] #18891: wp_error does not recognize when a custom post type does not support excerpts

WordPress Trac wp-trac at lists.automattic.com
Sun Oct 9 02:45:47 UTC 2011


#18891: wp_error does not recognize when a custom post type does not support
excerpts
--------------------------+-----------------------------
 Reporter:  ZaneMatthew   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.2.1
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 wp_error does not take into consideration if a custom post type does not
 support excerpts.

 Steps to reproduce:
 1. Create a custom post type that does NOT support excerpts.
 2. Use wp_insert_post to insert the post
 3. print_r your error message and you'll see that wp_error is returns:
 "Content, title, and excerpt are empty."

 It should not mention excerpts being empty as the custom post type does
 not even support them.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18891>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list