Make WordPress Core

Ticket #7707: wordpress.php.diff

File wordpress.php.diff, 387 bytes (added by dougal, 18 years ago)

Set $post_id properly for duplicate posts

  • wordpress.php

     
    390390                if ( $post_exists ) {
    391391                        echo '<li>';
    392392                        printf(__('Post <em>%s</em> already exists.'), stripslashes($post_title));
     393                        $post_id = $post_exists;
    393394                } else {
    394395
    395396                        // If it has parent, process parent first.