Make WordPress Core


Ignore:
Timestamp:
08/25/2008 09:50:11 PM (17 years ago)
Author:
ryan
Message:

Notice fixes. see #7509

File:
1 edited

Legend:

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

    r8726 r8732  
    1414if ( ! isset( $post_ID ) )
    1515    $post_ID = 0;
     16else
     17    $post_ID = (int) $post_ID;
    1618
    1719$action = isset($action) ? $action : '';
     
    3739    $autosave = false;
    3840} else {
    39     $post_ID = (int) $post_ID;
    4041    $form_action = 'editpost';
    4142    $form_extra = "<input type='hidden' id='post_ID' name='post_ID' value='$post_ID' />";
    42     $autosave = wp_get_post_autosave( $post_id );
     43    $autosave = wp_get_post_autosave( $post_ID );
    4344
    4445    // Detect if there exists an autosave newer than the post and if that autosave is different than the post
Note: See TracChangeset for help on using the changeset viewer.