Make WordPress Core


Ignore:
Timestamp:
02/06/2010 10:07:57 AM (16 years ago)
Author:
markjaquith
Message:

Create post_status=auto-draft when creating a new post item. status changes to draft on first auto-save. now we always have a real post ID to work with. see #11889. fixes #11145. fixes #11990

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/post-new.php

    r12927 r12987  
    5151// Show post form.
    5252if ( current_user_can($post_type_object->edit_type_cap) ) {
    53     $post = get_default_post_to_edit( $post_type );
     53    $post = get_default_post_to_edit( $post_type, true );
     54    $post_ID = $post->ID;
    5455    include('edit-form-advanced.php');
    5556}
Note: See TracChangeset for help on using the changeset viewer.