Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shared block references aren't updated on import #44

Open
jom opened this issue Dec 6, 2018 · 0 comments
Open

Shared block references aren't updated on import #44

jom opened this issue Dec 6, 2018 · 0 comments
Milestone

Comments

@jom
Copy link

jom commented Dec 6, 2018

In 5.0's block editor, shared block references (ex. <!-- wp:block {"ref":10} /-->) aren't updated when importing posts. The reference breaks when the shared block has a different post ID on the new site.

Steps to Reproduce

Original Site:

  1. Using the block editor, create several pages that reference the same shared block.
  2. Export the WXR file with all posts.
  3. Note the post ID of the wp_block post for the shared block.

New Site:

  1. Make sure the post ID for the shared block is already taken by a different kind of post type. For example, if in the original site the shared block had a post ID of 10, make sure that exists (https://example.com/wp-admin/post.php?post=10&action=edit).
  2. Import the WXR file.
  3. Attempt to edit the imported pages that reference the shared block.
    --> Expected: Shared block is imported and the IDs of all shared block references are mapped correctly.
    --> Actual: Shared block references are broken and unchanged with the ID from the originating site.
@ocean90 ocean90 added this to the 0.8.0 milestone Feb 28, 2020
@dd32 dd32 modified the milestones: 0.8.0, Next Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants