Maybe is a wrong aproximation, but since slug is automatically generated by WordPress and this plugin is only copying the slug from original post and letting wp do the job, I cleanup the slug to the first so wp assigns correctly the new number.
duplicate-post-admin.php:601
$post_name = $post->post_name;
if(get_option('duplicate_post_copyslug') != 1){
$post_name = '';
} else {
$result = preg_match( "/(.*)-\d*$/", $post_name, $matches);
if($result){
$post_name = $matches[1];
}
}
Side effects: posts with a number at the end are cleaned up as well…
-
This reply was modified 7 years, 5 months ago by yondemon.
-
This reply was modified 7 years, 5 months ago by yondemon.