Make WordPress Core

Ticket #6520: 6520-post.php.diff

File 6520-post.php.diff, 559 bytes (added by janbrasna, 16 years ago)

Patch fixing #6520

  • post.php

    diff -urp svn/post.php dev/post.php
    svn dev function get_sample_permalink($id, $titl 
    900900        // drafts, so we will fake, that our post is published
    901901        if (in_array($post->post_status, array('draft', 'pending'))) {
    902902                $post->post_status = 'publish';
    903                 $post->post_date = date('Y-m-d H:i:s');
     903                $post->post_date = date_i18n('Y-m-d H:i:s');
    904904                $post->post_name = sanitize_title($post->post_name? $post->post_name : $post->post_title, $post->ID);
    905905        }