Wrong redirect URL after core update when WP is in subdirectory
|Reported by:||tar.gz||Owned by:|
When updating WP 3.7.1 to 3.8 on a WP install that is located in a subdirectory (using the "Giving WordPress Its Own Directory" method), after the update, the browser forwards to a non-existing URL which causes a 404 error.
In this configuration, in the wp-config file, WP_SITEURL is set to example.com/wp and WP_HOME to example.com.
The update is triggered from the admin area located at example.com/wp/wp-admin/update-core.php
When the update finishes, instead of forwarding to example.com/wp/wp-admin/about.php?updated, it sends the user to example.com/wp-admin/about.php?updated. Because of the missing subdirectory, this displays a 404 error.
Upon returning to the dashboard, the user will notice that the update has been correctly applied, but he won't ever see the "Welcome to 3.8" page.