mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-29 23:57:41 +02:00
No need to fake post_date for drafts anymore. fixes #6520
git-svn-id: http://svn.automattic.com/wordpress/trunk@10007 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c5f4675ae0
commit
d24130b77b
@ -900,7 +900,6 @@ function get_sample_permalink($id, $title=null, $name = null) {
|
||||
// drafts, so we will fake, that our post is published
|
||||
if (in_array($post->post_status, array('draft', 'pending'))) {
|
||||
$post->post_status = 'publish';
|
||||
$post->post_date = date('Y-m-d H:i:s');
|
||||
$post->post_name = sanitize_title($post->post_name? $post->post_name : $post->post_title, $post->ID);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user