Ticket #1073: bug1073_post.diff
File bug1073_post.diff, 587 bytes (added by , 19 years ago) |
---|
-
wp-admin/post.php
308 308 if ( 'publish' == $post_status && (!user_can_create_post($user_ID)) && 2 != get_option('new_users_can_blog') ) 309 309 $post_status = 'draft'; 310 310 311 if (empty($post_name) || 'draft' == $post_status ) {311 if (empty($post_name) || 'draft' == $post_status || 'draft' == $prev_status ) { 312 312 $post_name = sanitize_title($post_title, $post_ID); 313 313 } else { 314 314 $post_name = sanitize_title($post_name, $post_ID);