Title: [Plugin: Duplicate Post] Errors in Version 2.0
Last modified: August 20, 2016

---

# [Plugin: Duplicate Post] Errors in Version 2.0

 *  Resolved [Kinghuebi](https://wordpress.org/support/users/kinghuebi/)
 * (@kinghuebi)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-duplicate-post-errors-in-version-20/)
 * If you duplicate a post in the article list of the adminpanel, it wont open in
   a new window.
 * If you duplicate a post, you must change the permalink of the post manually. 
   It will not change automatically after saving the post.
 * [http://wordpress.org/extend/plugins/duplicate-post/](http://wordpress.org/extend/plugins/duplicate-post/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [englebip](https://wordpress.org/support/users/englebip/)
 * (@englebip)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-duplicate-post-errors-in-version-20/#post-2436481)
 * 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.
 *  Plugin Author [Enrico Battocchi](https://wordpress.org/support/users/lopo/)
 * (@lopo)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-duplicate-post-errors-in-version-20/#post-2436524)
 * 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.
 *  Plugin Author [Enrico Battocchi](https://wordpress.org/support/users/lopo/)
 * (@lopo)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-duplicate-post-errors-in-version-20/#post-2436526)
 * englebip, thank you your help, I’ve fixed the code in version 2.0.1 out now.
 *  Plugin Author [Enrico Battocchi](https://wordpress.org/support/users/lopo/)
 * (@lopo)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-duplicate-post-errors-in-version-20/#post-2436672)
 * Version 2.0.2 (out now) fixes the permalink bug.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘[Plugin: Duplicate Post] Errors in Version 2.0’ is closed to new replies.

 * ![](https://ps.w.org/duplicate-post/assets/icon-256x256.png?rev=2336666)
 * [Yoast Duplicate Post](https://wordpress.org/plugins/duplicate-post/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/duplicate-post/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/duplicate-post/)
 * [Active Topics](https://wordpress.org/support/plugin/duplicate-post/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/duplicate-post/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/duplicate-post/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Enrico Battocchi](https://wordpress.org/support/users/lopo/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-duplicate-post-errors-in-version-20/#post-2436672)
 * Status: resolved