diff --git a/wp-includes/post.php b/wp-includes/post.php index 81cd12a12e..39eb6a35e9 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -3720,7 +3720,7 @@ function wp_unique_post_slug( $slug, $post_ID, $post_status, $post_type, $post_p $suffix = 2; do { $alt_post_name = _truncate_post_slug( $slug, 200 - ( strlen( $suffix ) + 1 ) ) . "-$suffix"; - $post_name_check = $wpdb->get_var( $wpdb->prepare( $check_sql, $alt_post_name, $post_ID, $post_parent ) ); + $post_name_check = $wpdb->get_var( $wpdb->prepare( $check_sql, $alt_post_name, $post_type, $post_ID, $post_parent ) ); $suffix++; } while ( $post_name_check ); $slug = $alt_post_name; diff --git a/wp-includes/version.php b/wp-includes/version.php index a559a77cae..f3ea35b95e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.1-beta1-30479'; +$wp_version = '4.1-beta1-30480'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.