Make WordPress Core

Opened 5 years ago

Last modified 5 years ago

#48323 new defect (bug)

Signup link redirect is not filtered on multisite when a blog is not found

Reported by: calin's profile calin Owned by:
Milestone: Awaiting Review 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.

Attachments (1)

network_site_url.diff (783 bytes) - added by calin 5 years ago.

Download all attachments as: .zip

Change History (2)

#1 @SergeyBiryukov
5 years ago

  • Component changed from General to Networks and Sites
Note: See TracTickets for help on using tickets.