[wp-trac] [WordPress Trac] #28135: wp_insert_post returns error for custom post type in 3.9.0

WordPress Trac noreply at wordpress.org
Sun Jul 27 15:18:36 UTC 2014


#28135: wp_insert_post returns error for custom post type in 3.9.0
-------------------------------------+--------------------
 Reporter:  capit0l                  |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  3.9.2
Component:  Posts, Post Types        |     Version:  3.9
 Severity:  major                    |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+--------------------

Comment (by michalzuber):

 {{{$post_type_object = get_post_type_object( $type );}}} is {{{NULL}}} if
 post type doesn't exists.

 @ew_holmes patch worked, just added post type slug into the message.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28135#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list