Opened 6 years ago
Last modified 7 weeks ago
#48323 reviewing defect (bug)
Signup link redirect is not filtered on multisite when a blog is not found
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 7.0 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Networks and Sites | Keywords: | has-patch |
| Focuses: | multisite | Cc: |
Description
The signup link redirect is not filtered for multisite when a blog is not found. Usually, the links are generated using network_site_url( 'wp-signup.php' ) which applies the network_site_url filter but not when a redirect occurs because the blog is not found.
The relevant piece of code is here: https://github.com/WordPress/WordPress/blob/5.2.3/wp-includes/ms-load.php#L396-L435
I know that this code loads before plugins, but it is loaded after sunrise.php, so the filter cand be added in that file.
I've attach a patch for this.
This is the patch for the ticket: https://core.trac.wordpress.org/ticket/48323