Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.42k stars 1.99k forks source link

Image src not updated when site address is changed in Simple Sites with custom domain #94360

Open jartes opened 2 months ago

jartes commented 2 months ago

Quick summary

When a site primary address is changed from a custom domain to another domain or free WordPress.com address, the image src is not updated.

In some scenarios, the original domain is detached from the site (domain is transferred or expires), making the images not being displayed.

Steps to reproduce

  1. On a Simple site with a domain, upload an image and add it to a post/page.
  2. Change the site address to another domain or the default site address.
  3. Check the image src.

What you expected to happen

Having the image src updated

What actually happened

The image src is not updated, and as mentioned, is not being displayed if the domain expires, or is not connected to the site anymore.

Impact

All

Available workarounds?

Yes, difficult to implement

If the above answer is "Yes...", outline the workaround.

The only workaround for now is editing the image src manually in cases where there are a few images.

Platform (Simple and/or Atomic)

Simple

Logs or notes

More context: p1724328833178529-slack-C03TY6J1A

jartes commented 2 months ago
github-actions[bot] commented 2 months ago

Support References

This comment is automatically generated. Please do not edit it.