[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 22:05:45 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:  needs-patch good-first-bug  |     Focuses:
----------------------------------------+--------------------
Changes (by SergeyBiryukov):

 * keywords:  has-patch needs-testing => needs-patch good-first-bug


Comment:

 We should just check if `$post_type_object` is not empty in
 `_count_posts_cache_key()`.

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


More information about the wp-trac mailing list