Skip to content

Commit d673955

Browse files
committed
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. git-svn-id: https://develop.svn.wordpress.org/trunk@62044 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 4d83a5b commit d673955

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/wp-includes/ms-load.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,10 @@ function ms_load_current_site_and_network( $domain, $path, $subdomain = false )
419419

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
/*
425428
* For a "subdomain" installation, the NOBLOGREDIRECT constant

0 commit comments

Comments
 (0)