Open bobbingwide opened 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.
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:
Navigation block examples are OK in core.wp-a2z.org Now need to check in blocks.wp-a2z.org
WordPress 5.9 introduces the
wp_navigation
custom post type. This will eventually replace thenav_menu_items
CPT. oik-clone needs to be able to clone thewp_navigation
CPT, taking into account theref
attribute on the post that's referencing the navigation block and theID
attributes in thewp_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.