title: wp_update_post() Error
body: <p>I have a custom code that will create automatically the menu and update the 'post' table to make my menu publish. Here is my code.</p>
  
  <pre><code>$test = array( 
  array(
  'menu-item-db-id' =&gt; 0,
  'menu-item-object-id' =&gt; 2,
  'menu-item-object' =&gt; 'category',
  'menu-item-parent-id' =&gt; 0,
  'menu-item-type' =&gt; 'taxonomy',
  'menu-item-title' =&gt; 'Rome',
  'menu-item-url' =&gt; 'http://test.exmple.com/rome/',
  'menu-item-target' =&gt; '',
  'menu-item-classes' =&gt; '', 
  'menu-item-xfn' =&gt; '',
  'menu-item-description' =&gt; ''
  )
  );
  
  
  if($item_ids = wp_save_nav_menu_items( 7, $test )) {
     $my_post = array (
      'ID' =&gt; $item_ids,
      'post_status' =&gt; 'publish',
      'post_name' =&gt; $item_ids
  );
    wp_update_post($my_post);
  }
  </code></pre>
  
  <p>The problem here is when calling the function wp_update_post, I got an error:</p>
  
  <pre><code>Warning: strip_tags() expects parameter 1 to be string, array given in      /home/lingfish/public_html/wp-includes/formatting.php on line 1068
  
  Warning: urlencode() expects parameter 1 to be string, array given in /home/lingfish/public_html/wp-includes/post.php on line 2790
  
  Warning: preg_match() expects parameter 2 to be string, array given in /home/lingfish/public_html/wp-includes/formatting.php on line 633
  
  Warning: strip_tags() expects parameter 1 to be string, array given in /home/lingfish/public_html/wp-includes/formatting.php on line 1068
  </code></pre>
  
  <p>However after loading the page and then when I refresh but commenting all the code except this:</p>
  
  <pre><code>$my_post = array (
       'ID' =&gt; $item_ids,
       'post_status' =&gt; 'publish',
       'post_name' =&gt; $item_ids
  );
   wp_update_post($my_post);
  </code></pre>
  
  <p>It will work, I have the filling that after saving the menu items it will not created automatically on the post table that's why when calling the wp_update_post there is no result. Do you have other solution so I can update the field post_status to publish so that my menu will be visible?</p>