mirror of
https://github.com/WordPress/WordPress.git
synced 2026-06-19 07:37:07 +00:00
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. Built from https://develop.svn.wordpress.org/trunk@62044 git-svn-id: http://core.svn.wordpress.org/trunk@61326 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -419,7 +419,10 @@ function ms_load_current_site_and_network( $domain, $path, $subdomain = false )
|
||||
|
||||
if ( $subdomain && ! defined( 'NOBLOGREDIRECT' ) ) {
|
||||
// For a "subdomain" installation, redirect to the signup form specifically.
|
||||
$destination .= 'wp-signup.php?new=' . str_replace( '.' . $current_site->domain, '', $domain );
|
||||
$path = 'wp-signup.php?new=' . str_replace( '.' . $current_site->domain, '', $domain );
|
||||
|
||||
/** This filter is documented in wp-includes/link-template.php */
|
||||
$destination = apply_filters( 'network_site_url', $destination . $path, $path, $scheme );
|
||||
} elseif ( $subdomain ) {
|
||||
/*
|
||||
* For a "subdomain" installation, the NOBLOGREDIRECT constant
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '7.0-beta5-62043';
|
||||
$wp_version = '7.0-beta5-62044';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
||||
Reference in New Issue
Block a user