WordPress.org

Make WordPress Core

Ticket #48323: network_site_url.diff

File network_site_url.diff, 783 bytes (added by calin, 2 years ago)
  • wp-includes/ms-load.php

    index 6c698fcdde..1396efaaec 100644
    a b function ms_load_current_site_and_network( $domain, $path, $subdomain = false ) 
    414414
    415415                if ( $subdomain && ! defined( 'NOBLOGREDIRECT' ) ) {
    416416                        // For a "subdomain" installation, redirect to the signup form specifically.
    417                         $destination .= 'wp-signup.php?new=' . str_replace( '.' . $current_site->domain, '', $domain );
     417                        $path        = 'wp-signup.php?new=' . str_replace( '.' . $current_site->domain, '', $domain );
     418                        $destination = apply_filters( 'network_site_url', $destination . $path, $path, $scheme );
    418419                } elseif ( $subdomain ) {
    419420                        // For a "subdomain" installation, the NOBLOGREDIRECT constant
    420421                        // can be used to avoid a redirect to the signup form.