Ticket #30339: post.diff
File post.diff, 602 bytes (added by , 10 years ago) |
---|
-
post.php
3720 3720 $suffix = 2; 3721 3721 do { 3722 3722 $alt_post_name = _truncate_post_slug( $slug, 200 - ( strlen( $suffix ) + 1 ) ) . "-$suffix"; 3723 $post_name_check = $wpdb->get_var( $wpdb->prepare( $check_sql, $alt_post_name, $post_ ID, $post_parent ) );3723 $post_name_check = $wpdb->get_var( $wpdb->prepare( $check_sql, $alt_post_name, $post_type, $post_ID, $post_parent ) ); 3724 3724 $suffix++; 3725 3725 } while ( $post_name_check ); 3726 3726 $slug = $alt_post_name;