[wp-trac] [WordPress Trac] #40336: Links to media files not updating with SSL activation and/or preferred domain change
WordPress Trac
noreply at wordpress.org
Sun Apr 2 23:15:19 UTC 2017
#40336: Links to media files not updating with SSL activation and/or preferred
domain change
--------------------------+------------------------------
Reporter: only1andrewh | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 4.7.3
Severity: normal | Resolution:
Keywords: close | Focuses:
--------------------------+------------------------------
Changes (by SergeyBiryukov):
* keywords: => close
Comment:
Hi @only1andrewh, welcome to WordPress Trac! Thanks for the report.
> It was truly a surprise to me to see that the links aren't relative but
absolute.
It's a design decision, see the
[https://make.wordpress.org/core/handbook/contribute/design-decisions
/#absolute-versus-relative-urls handbook entry] for more details.
As noted above, it's not really feasible for WordPress to update links in
post content automatically, but it can be done with WP-CLI or
[https://interconnectit.com/products/search-and-replace-for-wordpress-
databases/ Database Search and Replace] script.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40336#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list