Multisite and upgrading Duplicate Post
-
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);
The topic ‘Multisite and upgrading Duplicate Post’ is closed to new replies.