Make WordPress Core

Changeset 9332


Ignore:
Timestamp:
10/24/2008 08:04:31 PM (16 years ago)
Author:
ryan
Message:

Warning fixes from DD32. see #7509

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-page-form.php

    r9319 r9332  
    1414if ( ! isset( $post_ID ) )
    1515    $post_ID = 0;
     16if ( ! isset( $temp_ID ) )
     17    $temp_ID = 0;
    1618
    1719if ( isset($_GET['message']) )
     
    3840    $nonce_action = 'update-page_' . $post_ID;
    3941    $form_extra = "<input type='hidden' id='post_ID' name='post_ID' value='$post_ID' />";
    40     $autosave = wp_get_post_autosave( $post_id );
     42    $autosave = wp_get_post_autosave( $post_ID );
    4143    if ( $autosave && mysql2date( 'U', $autosave->post_modified_gmt ) > mysql2date( 'U', $post->post_modified_gmt ) )
    4244        $notice = sprintf( $notices[1], get_edit_post_link( $autosave->ID ) );
Note: See TracChangeset for help on using the changeset viewer.