Make WordPress Core


Ignore:
Timestamp:
05/29/2008 10:21:36 PM (16 years ago)
Author:
ryan
Message:

Post revisions API cleanup from mdawaffe. see #6775

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-ajax.php

    r7971 r8011  
    520520                $id = edit_post();
    521521            } else { // Non drafts are not overwritten.  The autosave is stored in a special post revision.
    522                 $revision_id = wp_create_autosave( $post->ID );
     522                $revision_id = wp_create_post_autosave( $post->ID );
    523523                if ( is_wp_error($revision_id) )
    524524                    $id = $revision_id;
Note: See TracChangeset for help on using the changeset viewer.