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/edit-form-advanced.php

    r7967 r8011  
    2222    $form_action = 'editpost';
    2323    $form_extra = "<input type='hidden' id='post_ID' name='post_ID' value='$post_ID' />";
    24     $autosave = wp_get_autosave( $post_id );
     24    $autosave = wp_get_post_autosave( $post_id );
    2525    if ( $autosave && mysql2date( 'U', $autosave->post_modified_gmt ) > mysql2date( 'U', $post->post_modified_gmt ) )
    2626        $notice = sprintf( $notices[1], get_edit_post_link( $autosave->ID ) );
Note: See TracChangeset for help on using the changeset viewer.