Ticket #6520: 6520-post.php.diff
File 6520-post.php.diff, 559 bytes (added by , 16 years ago) |
---|
-
post.php
diff -urp svn/post.php dev/post.php
svn dev function get_sample_permalink($id, $titl 900 900 // drafts, so we will fake, that our post is published 901 901 if (in_array($post->post_status, array('draft', 'pending'))) { 902 902 $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'); 904 904 $post->post_name = sanitize_title($post->post_name? $post->post_name : $post->post_title, $post->ID); 905 905 }