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

Support cloning of wp_navigation post types with WordPress 5.9 #65

Open bobbingwide opened 2 years ago

bobbingwide commented 2 years ago

WordPress 5.9 introduces the wp_navigation custom post type. This will eventually replace the nav_menu_items CPT. oik-clone needs to be able to clone the wp_navigation CPT, taking into account the ref attribute on the post that's referencing the navigation block and the ID attributes in the wp_navigation content.

Since the Navigation block is not yet supported with WordPress 5.8 and core.wp-a2z.org is not yet on WordPress 5.9 we can't test with a live site. We can test it between local sites though.

bobbingwide commented 2 years ago

OK, I didn't test it between local sites. What I did do was clone the blocks including the wp_navigation posts. The target posts that include the navigation block have the original value for the ref attribute. This could be because the target posts weren't actually created. Need to check.

bobbingwide commented 2 years ago

Assigned as a 2A ( Severity 2, Priority A ) since the documentation is missing examples on core.wp-a2z.org and blocks.wp-a2z.org The workaround is to edit the posts on the target. But it's probably easier to investigate why it didn't work and to fix it. ... which I did.

I need to:

bobbingwide commented 2 years ago

Navigation block examples are OK in core.wp-a2z.org Now need to check in blocks.wp-a2z.org