Changeset 2496 for trunk/wp-admin/post.php
- Timestamp:
- 03/29/2005 07:24:37 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/post.php
r2463 r2496 105 105 $post_ID = $id_result->Auto_increment; 106 106 107 if ( empty($post_name) || 'draft' == $post_status ) { 108 $post_name = sanitize_title($post_title, $post_ID); 107 if ( empty($post_name) ) { 108 if ( 'draft' != $post_status ) 109 $post_name = sanitize_title($post_title, $post_ID); 109 110 } else { 110 111 $post_name = sanitize_title($post_name, $post_ID); … … 291 292 $post_password = $_POST['post_password']; 292 293 $post_name = $_POST['post_name']; 293 if (empty($post_name)) {294 $post_name = $post_title;295 }296 294 297 295 $post_parent = 0; … … 309 307 $post_status = 'draft'; 310 308 311 if (empty($post_name) || 'draft' == $post_status ) { 312 $post_name = sanitize_title($post_title, $post_ID); 309 if ( empty($post_name) ) { 310 if ( 'draft' != $post_status ) 311 $post_name = sanitize_title($post_title, $post_ID); 313 312 } else { 314 313 $post_name = sanitize_title($post_name, $post_ID);
Note: See TracChangeset
for help on using the changeset viewer.