Duplicate Post
[resolved] Errors in Version 2.0 (5 posts)

  1. Kinghuebi
    Posted 3 years ago #

    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.


  2. englebip
    Posted 3 years ago #

    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 );
    	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.

  3. lopo
    Plugin Author

    Posted 3 years ago #

    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.

  4. lopo
    Plugin Author

    Posted 3 years ago #

    englebip, thank you your help, I've fixed the code in version 2.0.1 out now.

  5. lopo
    Plugin Author

    Posted 3 years ago #

    Version 2.0.2 (out now) fixes the permalink bug.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Duplicate Post
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic