• Resolved James

    (@harris1)


    Hello,

    I have a problem after upgrading Duplicate Post:

    1. Install Duplicate Post 2.6 on a multi-site/network WordPress
    2. Visit dashboard of two blogs
    3. See the “Copy to a new draft” feature copies the post content
    4. Upgrade Duplicate Post from 2.6 to 3.2
    5. “Copy to a new draft” copies post content on first blog, but not the second blog.

    I didn’t change any settings, but Looking at Settings > Duplicate Post, most of the checkboxes are unchecked on the second site.

    It looks like function duplicate_post_plugin_upgrade() only upgrades one blog. I was able to get the defaults to work with this patch:

    
    --- a/wp-content/plugins/duplicate-post/duplicate-post-admin.php	Wed Aug 16 08:47:38 2017 -0400
    +++ b/wp-content/plugins/duplicate-post/duplicate-post-admin.php	Wed Aug 16 09:51:06 2017 -0400
    @@ -12,7 +12,7 @@
      * Wrapper for the option 'duplicate_post_version'
     */
     function duplicate_post_get_installed_version() {
    -	return get_site_option( 'duplicate_post_version' );
    +	return get_option( 'duplicate_post_version' );
     }
     
     /**
    @@ -178,7 +178,7 @@
     	delete_option('dp_notice');
     	
     	delete_option('duplicate_post_version');
    -	update_site_option( 'duplicate_post_version', duplicate_post_get_current_version() );
    +	update_option( 'duplicate_post_version', duplicate_post_get_current_version() );
     	
     	delete_option('duplicate_post_show_notice', 0);
     	update_site_option('duplicate_post_show_notice', 1);
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @harris1,
    I’ll look into the issue, I moved the option to network-wide level since it could lead to some other problems (and after all the version of the plugin is the same for all the sites of a network).

    Thanks for reporting, I’ll let you know as soon as I have news!

    Plugin Author Enrico Battocchi

    (@lopo)

    Hi,
    version 3.2.1 out now should fix the issue.

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

The topic ‘Multisite and upgrading Duplicate Post’ is closed to new replies.