WordPress.org

Make WordPress Core

Opened 4 years ago

Last modified 2 years ago

#18769 new enhancement

Admin should not break if URL changes — at Version 1

Reported by: AmbushCommander Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Administration Keywords:
Focuses: Cc:

Description (last modified by nacin)

We manage a lot of users who have WordPress blogs, and probably the number one user support request we have to field comes out of this situation:

  1. User decides they want to move their WordPress,
  2. They move the folder to a new URL,
  3. Their admin page stops working, because it still had the old URL hard-coded.

This is silly and should be fixed.

Change History (1)

comment:1 @nacin4 years ago

  • Description modified (diff)

There is a RELOCATE constant that can be set, which will allow wp-login.php to work, and upon login the siteurl setting will be updated.

We can potentially handle this more gracefully, by not requiring the constant and having some sort of migration step/warning. But do we want that? Seems pretty rare/edge to be honest (possibly the first bug report I've seen on this specifically). And then there's the issue with old URLs breaking, so it's not like we'd want to encourage migrations as we won't be able to handle the old URLs.

Note: See TracTickets for help on using tickets.