#34741 closed defect (bug) (duplicate)
Don't store the domain or the path in the database
Reported by: | illustir | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
I'm in the process of moving a wordpress site and I'm running into this. Storing full URLs in the database is a terrible practice and should be considered a bug.
URLs should be constructed from their respective components based on the site's settings.
Change History (2)
Note: See
TracTickets for help on using
tickets.
This has been discussed at length in #32639 and #17048, also see https://make.wordpress.org/core/handbook/contribute/design-decisions/#absolute-versus-relative-urls.