[wp-trac] [WordPress Trac] #19954: wp_insert_post should look if default category is nessesary

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 28 20:38:59 UTC 2012


#19954: wp_insert_post should look if default category is nessesary
--------------------------+------------------
 Reporter:  markoheijnen  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.4
Component:  Post Types    |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------

Comment (by markoheijnen):

 I don't believe it is xml-rpc related. What I did was adding the category
 with the metod wp_set_object_terms() on the post ID what you get from
 get_default_post_to_edit(). I know thisis a rare condition.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19954#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list