Changeset 4199
- Timestamp:
- 09/21/2006 12:01:20 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/post.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r4198 r4199 592 592 $post_name_check = $wpdb->get_var("SELECT post_name FROM $wpdb->posts WHERE post_name = '$post_name' AND post_type = '$post_type' AND ID != '$post_ID' AND post_parent = '$post_parent' LIMIT 1"); 593 593 594 if ($post_name_check ) {594 if ($post_name_check || in_array($post_name, $wp_rewrite->feeds) ) { 595 595 $suffix = 2; 596 while ($post_name_check){596 do { 597 597 $alt_post_name = $post_name . "-$suffix"; 598 598 $post_name_check = $wpdb->get_var("SELECT post_name FROM $wpdb->posts WHERE post_name = '$alt_post_name' AND post_type = '$post_type' AND ID != '$post_ID' AND post_parent = '$post_parent' LIMIT 1"); 599 599 $suffix++; 600 } 600 } while ($post_name_check); 601 601 $post_name = $alt_post_name; 602 602 }
Note: See TracChangeset
for help on using the changeset viewer.