title: How to prevent wp_insert_post() to set Uncategorized category?
body: <p>I'm  using <code>Wordpress 3.5</code> and it seems that <code>wp_insert_post()</code> cannot set categories anymore,  the documentation syas : </p>
  
  <blockquote>
    <p>post_category no longer exists, try wp_set_post_terms() for setting a
    post's categories</p>
  </blockquote>
  
  <p>The problem is that <code>wp_set_post_terms()</code> or <code>wp_set_object_terms()</code> require the <code>postID</code>, which is returned by <code>wp_insert_post()</code>. While this is fine to set category terms to the post inserted by <code>wp_insert_post()</code>, the problem is that every time I call <code>wp_insert_post()</code> I get the <code>Uncategorized</code> category in my post, in addition to the category terms I set after calling <code>wp_insert_post()</code>. How can I prevent the <code>Uncategorized</code> to be always there?</p>