bobbingwide / oik-clone

Clone content between sites
https://www.oik-plugins.com/oik-plugins/oik-clone-clone-your-wordpress-content/
GNU General Public License v2.0
5 stars 0 forks source link

Add admin facility to reconcile with a slave server #49

Open bobbingwide opened 4 years ago

bobbingwide commented 4 years ago

In #34 I added a batch facility to perform reconciliation between the master and the slave site. In a couple of weeks time I'm travelling to NZ for a month. If I do any work on my live sites I'd like to be able to reconcile the changes in my local machine on return. Although the batch reconciliation appears to work I'm wary about using it. It all happens so fast! Even though I have the ability to revert to a previous revision I'm still nervous.

I added "Do Not Clone" logic in #37 so that I could avoid pushing and pulling new content that I don't actually want cloning.

Now I want to add a UI in the oik options > clone admin page to allow me to control the reconciliation. It's primarily for pulling new content created on the Live server: blocks, block examples, posts, pages and plugins.

Requirements

Proposed solution

bobbingwide commented 4 years ago

Ability to detect a post that’s been updated in both master and slave.

Not sure what to do here? Probably offer both push and pull. Can we also implement the compare function?

bobbingwide commented 4 years ago

Ability to list content that has not been cloned.

This is possible using a bw_table shortcode displaying the clone information as a field.

bobbingwide commented 4 years ago

While looking at the embed shortcode, since it's been changed in a recent version of WordPress I tried reconciling s.b/oikcom with oik-plugins.com. It appeared to want to import the oik_shortcodes/embed post even though it already existed. Needs investigating.

Explanation

There was a mismatch between post names. embed-2 and embed.

bobbingwide commented 4 years ago

What's more concerning is what happened when I performed the pull. image

Two problems here.

  1. PHP Notices.
  2. I'll have to eliminate or escape the echos
bobbingwide commented 3 years ago

Not closing. New issue raised while trying to retest.