WordPress.org

Make WordPress Core

Changeset 22989


Ignore:
Timestamp:
12/03/2012 06:28:28 AM (5 years ago)
Author:
nacin
Message:

Do not save an initial revision for a post created through the auto-draft mechanism. Prevents a bogus revision, often with the title 'Auto Draft'. Restores pre-auto-draft behavior made obvious by XML-RPC's implementation of both auto-drafts and the subsequent wp.getRevisions method. fixes #22687. see #22686.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r22921 r22989  
    49224922        return;
    49234923
     4924    if ( 'auto-draft' == $post['post_status'] )
     4925        return;
     4926
    49244927    if ( !post_type_supports($post['post_type'], 'revisions') )
    49254928        return;
Note: See TracChangeset for help on using the changeset viewer.