title: Post Status is not updating from “Publish to Draft” and “Publish to Pending” in custom post type
body: <p>I have a custom post type in which I am having a problem that its Post status always remains to Publish. Whenever I choose status draft or pending review and then click update button. It again shows post status as publish and doesn't change. Please see my code below and please tell me what I am getting wrong.</p>
  
  <pre><code>add_action('init', 'properties_create_post_type');
  
  function properties_create_post_type() {
  
  $soto_property_labels = array(
      'name' =&gt; __('Properties', 'custom'),
      'singular_name' =&gt; __('Property', 'custom'),
      'add_new' =&gt; __('Add New Property', 'custom'),
      'add_new_item' =&gt; __('Add New Property', 'custom'),
      'edit_item' =&gt; __('Edit Property', 'custom'),
      'new_item' =&gt; __('New Property', 'custom'),
      'all_items' =&gt; __('All Properties', 'custom'),
      'view_item' =&gt; __('View Property', 'custom'),
      'search_items' =&gt; __('Search Property', 'custom'),
      'not_found' =&gt; __('No Properties found', 'custom'),
      'not_found_in_trash' =&gt; __('No Properties found in Trash', 'custom'),
      'parent_item_colon' =&gt; '',
      'menu_name' =&gt; __('Properties', 'custom'),
  );
  
  register_post_type('soto_property',
      array(
          'labels' =&gt; $soto_property_labels,
          'supports' =&gt; array('title'),
          'public' =&gt; TRUE,
          'has_archive' =&gt; TRUE,
          'rewrite' =&gt; array('slug' =&gt; __('properties', 'custom')),
          'menu_icon' =&gt; plugins_url('properties/assets/img/properties.png'),
          'menu_position' =&gt; 42,
          'categories' =&gt; array(),
      )
  ); 
  }
  </code></pre>