Make WordPress Core

Ticket #4855: edit-form-advanced.php.diff

File edit-form-advanced.php.diff, 567 bytes (added by BoltClock, 18 years ago)

The patch

  • edit-form-advanced.php

     
    1919
    2020if (0 == $post_ID) {
    2121        $form_action = 'post';
    22         $temp_ID = -1 * time(); // don't change this formula without looking at wp_write_post()
     22        $temp_ID = -1 * time() + 1; // don't change this formula without looking at wp_write_post()
    2323        $form_extra = "<input type='hidden' id='post_ID' name='temp_ID' value='$temp_ID' />";
    2424        wp_nonce_field('add-post');
    2525} else {