Description
Steps to reproduce:
- Create a reusable block with a gallery of images.
- Open the block library by clicking on the inserter in the top toolbar.
- Click the gear icon in the "Reusable" section in the block library.
- Click "Export as JSON" for the reusable block from step 1.
- Open a different site and go to Posts > Add New.
- Open the block library by clicking on the inserter in the top toolbar.
- Click the gear icon in the "Reusable" section in the block library.
- Click the "Import from JSON" button at the top.
- Select the block exported from the other site.
- Try to edit the gallery images.
Result: the images are not actually imported and therefore cannot be modified via the imported reusable block. The following set of errors appears in the console for each image when the block loads:
GET http://madefortesting.com/wp-json/wp/v2/media/14448?context=edit 404 (Not Found)
index.js?ver=1537381499:1
Uncaught (in promise) {code: "rest_post_invalid_id", message: "Invalid post ID.", data: {…}}
index.js?ver=1537381499:1
Seen at http://madefortesting.com/wp-admin/post.php?post=616&action=edit running WordPress 4.9.8 and Gutenberg 3.9.0-rc.2 using Chrome 69.0.3497.92 on macOS 10.13.6.
Note: I used a gallery block in this test, but the problem applies to other blocks with images such as Cover Image.
What should happen for images inside reusable blocks? Should they be imported too? This seems complex. 🙂
Activity