I found a bug in version 2.0; at least when duplicating a custom post there are multiple notices and errors. They go away by modifying around line 271 of duplicate-post-admin.php
by the following code:
if ($post->post_type == 'page' || (function_exists('is_post_type_hierarchical') && is_post_type_hierarchical( $post->post_type )))
do_action( 'dp_duplicate_page', $new_post_id, $post );
else
do_action( 'dp_duplicate_post', $new_post_id, $post );
return $new_post_id;
The changes are in quoting is_post_type_hierarchical
and changing $new_id
by $new_post_id
in the do_action()
calls.
Kinghuebi, the first thing is a new feature, as some users asked to speed up cloning. Some users now, though, are complaining because the copy gets immediately published, so in version 2.0.1 (out now) the copy is always created as a draft unless you set an option.
As for the second thing, I understand the problem, I’ll fix it soon.
englebip, thank you your help, I’ve fixed the code in version 2.0.1 out now.
Version 2.0.2 (out now) fixes the permalink bug.