Ticket #1073: bug1073_noprivateslug.diff
File bug1073_noprivateslug.diff, 782 bytes (added by , 19 years ago) |
---|
-
wp-admin/post.php
105 105 $post_ID = $id_result->Auto_increment; 106 106 107 107 if ( empty($post_name) ) { 108 if ( 'draft' != $post_status)108 if ( ('draft' != $post_status) && ('private' != $post_status) ) 109 109 $post_name = sanitize_title($post_title, $post_ID); 110 110 } else { 111 111 $post_name = sanitize_title($post_name, $post_ID); … … 307 307 $post_status = 'draft'; 308 308 309 309 if ( empty($post_name) ) { 310 if ( 'draft' != $post_status)310 if ( ('draft' != $post_status) && ('private' != $post_status) ) 311 311 $post_name = sanitize_title($post_title, $post_ID); 312 312 } else { 313 313 $post_name = sanitize_title($post_name, $post_ID);