Make WordPress Core

Changeset 62044


Ignore:
Timestamp:
03/18/2026 10:58:22 AM (2 weeks ago)
Author:
audrasjb
Message:

Networks and Sites: Allow filtering signup link redirect when a blog is not found.

This changeset applies the existing network_site_url filter to the signup link redirect used when the blog is not found.

Props calin, realloc, audrasjb, peterwilsoncc.
Fixes #48323.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-load.php

    r61878 r62044  
    420420        if ( $subdomain && ! defined( 'NOBLOGREDIRECT' ) ) {
    421421            // For a "subdomain" installation, redirect to the signup form specifically.
    422             $destination .= 'wp-signup.php?new=' . str_replace( '.' . $current_site->domain, '', $domain );
     422            $path = 'wp-signup.php?new=' . str_replace( '.' . $current_site->domain, '', $domain );
     423
     424            /** This filter is documented in wp-includes/link-template.php */
     425            $destination = apply_filters( 'network_site_url', $destination . $path, $path, $scheme );
    423426        } elseif ( $subdomain ) {
    424427            /*
Note: See TracChangeset for help on using the changeset viewer.