Forums

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

  1. Kinghuebi
    Member
    Posted 5 months 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.

    http://wordpress.org/extend/plugins/duplicate-post/

  2. englebip
    Member
    Posted 5 months 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 );
    	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.

  3. lopo
    Member
    Posted 5 months 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
    Member
    Posted 5 months ago #

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

  5. lopo
    Member
    Posted 5 months ago #

    Version 2.0.2 (out now) fixes the permalink bug.

Reply

You must log in to post.

About this Plugin

About this Topic