Make WordPress Core

Ticket #10401: import-wordpress.php.patch

File import-wordpress.php.patch, 605 bytes (added by joostdevalk, 16 years ago)

Patch

  • wp-admin/import/wordpress.php

     
    448448                        else {
    449449                                printf(__('Importing post <em>%s</em>...'), stripslashes($post_title));
    450450                                $comment_post_ID = $post_id = wp_insert_post($postdata);
     451                                if ($post_status == 'future') {
     452                                        $time = strtotime( $post_date_gmt . ' GMT' );
     453                                        wp_schedule_single_event( $time, 'publish_future_post', array( $post_id ) );
     454                                }
     455                                       
    451456                        }
    452457
    453458                        if ( is_wp_error( $post_id ) )