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-page-form.php

    r7948 r8011  
    2020    $nonce_action = 'update-page_' . $post_ID;
    2121    $form_extra = "<input type='hidden' id='post_ID' name='post_ID' value='$post_ID' />";
    22     $autosave = wp_get_autosave( $post_id );
     22    $autosave = wp_get_post_autosave( $post_id );
    2323    if ( $autosave && mysql2date( 'U', $autosave->post_modified_gmt ) > mysql2date( 'U', $post->post_modified_gmt ) )
    2424        $notice = sprintf( $notices[1], get_edit_post_link( $autosave->ID ) );
Note: See TracChangeset for help on using the changeset viewer.