You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have always been able to use the Theme Unit Test XML file that contains galleries with links, but now that there are gallery blocks with links, the results are different. The original galleries were shortcodes, so there is nothing to do. The block galleries contain the HTML for the links and the images, which remain as the old URL. Yet posts with images (not galleries) or image blocks are imported with changes to the image URLs.
Steps to Reproduce
Original Site:
Using the block editor, create a post with two gallery blocks, one with linked images.
Export the post.
Note the gallery blocks show the original site URLs for links and images.
New Site:
Import the post.
View the imported post on the front end.
View the page source and find the galleries. Expected result: links and images use the new site URL Actual result: links and images use the original site URL
This screenshot is from my localhost where I did the import. It contains the URL from the original sandbox site. (Tested with WP 5.3 on both sites.)
I have seen the same problem with
Cover block video backgrounds
Image block in a column block
Media/Text block
Audio block
Video block
File block
Download block
Button block
The text was updated successfully, but these errors were encountered:
I think in my test I exported only the post I created (I chose the Posts radio button and All dates). On import, I chose to download and import file attachments.
But the images were not in the media library after the import (content pointed to the original site for images).
So I tried again by exporting All content. And importing, I chose to download and import file attachments. This time the images were in the media library, and the gallery blocks had the links and image URLs changed to the correct URL. But there is still a data-link attribute that has the original URL.
We have always been able to use the Theme Unit Test XML file that contains galleries with links, but now that there are gallery blocks with links, the results are different. The original galleries were shortcodes, so there is nothing to do. The block galleries contain the HTML for the links and the images, which remain as the old URL. Yet posts with images (not galleries) or image blocks are imported with changes to the image URLs.
Steps to Reproduce
Original Site:
New Site:
Expected result: links and images use the new site URL
Actual result: links and images use the original site URL
This screenshot is from my localhost where I did the import. It contains the URL from the original sandbox site. (Tested with WP 5.3 on both sites.)
![block-export-import](https://user-images.githubusercontent.com/7957680/69272022-88bac780-0b9b-11ea-8899-63bdbc2f4216.jpg)
I have seen the same problem with
The text was updated successfully, but these errors were encountered: