Skip to content

Support for cloning sites with distributed posts. #413

@ulkish

Description

@ulkish

Is your enhancement related to a problem? Please describe.
In a multisite network when cloning a site that contains distributed posts the original post has no idea a new connection has been made, and as such updates are not being made in the new cloned post.

Describe the solution you'd like
I created a plugin that fixes this problem. Basically anytime a new multisite is created it will look for distributed posts in the database, find their original blog ID and post ID, and finally create and insert the new connection in each of the original posts' 'dt_connection_map' meta. It also adds a page in which you can select your new clone and fix its connections.

Additional context
I understand this is not a common use of the Distributor plugin. Our client has a main site clone for almost every state, and needed to push and update posts and pages.
At the moment this plugin only works while cloning with Multisite Cloner and not with other cloning plugins (such as NS Cloner or MultiSite Clone Duplicator) but the manual fix works fine. Its page is located in Network > Settings > Distributor Map Fixer.
At the moment I'm working on adding support for the other cloning plugins which shouldn't take much time.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions