Ticket #23665: 23665-post-name.patch
File 23665-post-name.patch, 658 bytes (added by , 12 years ago) |
---|
-
wp-includes/post.php
3016 3016 * @return string unique slug for the post, based on $post_name (with a -1, -2, etc. suffix) 3017 3017 */ 3018 3018 function wp_unique_post_slug( $slug, $post_ID, $post_status, $post_type, $post_parent ) { 3019 if ( in_array( $post_status, array( 'draft', 'pending', 'auto-draft' ) ) )3019 if ( in_array( $post_status, array( 'draft', 'pending', 'auto-draft' ) ) || ( 'inherit' == $post_status && 'revision' == $post_type ) ) 3020 3020 return $slug; 3021 3021 3022 3022 global $wpdb, $wp_rewrite;