WordPress.org

Make WordPress Core

Opened 13 months ago

Last modified 13 months ago

#48323 new defect (bug)

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

Reported by: 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 13 months ago.

Download all attachments as: .zip

Change History (2)

#1 @SergeyBiryukov
13 months ago

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