[wp-trac] [WordPress Trac] #20105: When inserting a draft post with wp_insert_post you can't query it on name

WordPress Trac wp-trac at lists.automattic.com
Wed Feb 22 23:50:02 UTC 2012


#20105: When inserting a draft post with wp_insert_post you can't query it on name
--------------------------+-----------------------------
 Reporter:  markoheijnen  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Post Types    |    Version:
 Severity:  normal        |   Keywords:  dev-feedback
--------------------------+-----------------------------
 When creating a draft post with wp_insert_post you can't query it with
 get_post.
 In my case I used the argument: name. That is the problem. Not using it
 will find the post.

 I'm not sure if this is an expected result. I would say no.

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


More information about the wp-trac mailing list