diff --git a/wp-activate.php b/wp-activate.php
index a796cc5..ee6d818 100644
--- a/wp-activate.php
+++ b/wp-activate.php
@@ -14,7 +14,7 @@ require( dirname(__FILE__) . '/wp-load.php' );
 require( dirname( __FILE__ ) . '/wp-blog-header.php' );
 
 if ( !is_multisite() ) {
-	wp_redirect( site_url( '/wp-login.php?action=register' ) );
+	wp_redirect( wp_registration_url() );
 	die();
 }
 
diff --git a/wp-includes/canonical.php b/wp-includes/canonical.php
index f75a72e..7bb0915 100644
--- a/wp-includes/canonical.php
+++ b/wp-includes/canonical.php
@@ -326,7 +326,7 @@ function redirect_canonical( $requested_url = null, $do_redirect = true ) {
 				/** This filter is documented in wp-login.php */
 				$redirect_url = apply_filters( 'wp_signup_location', network_site_url( 'wp-signup.php' ) );
 			} else {
-				$redirect_url = site_url( 'wp-login.php?action=register' );
+				$redirect_url = wp_registration_url();
 			}
 
 			wp_redirect( $redirect_url, 301 );
diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php
index 8f2cdf6..0bfa2e1 100644
--- a/wp-includes/general-template.php
+++ b/wp-includes/general-template.php
@@ -357,10 +357,11 @@ function wp_login_url($redirect = '', $force_reauth = false) {
  * Returns the URL that allows the user to register on the site.
  *
  * @since 3.6.0
+ * @since 4.4.0 The `$scheme` parameter was added.
  *
  * @return string User registration URL.
  */
-function wp_registration_url() {
+function wp_registration_url( $scheme = null ) {
 	/**
 	 * Filter the user registration URL.
 	 *
@@ -368,7 +369,7 @@ function wp_registration_url() {
 	 *
 	 * @param string $register The user registration URL.
 	 */
-	return apply_filters( 'register_url', site_url( 'wp-login.php?action=register', 'login' ) );
+	return apply_filters( 'register_url', site_url( 'wp-login.php?action=register', $scheme ) );
 }
 
 /**
@@ -515,7 +516,7 @@ function wp_lostpassword_url( $redirect = '' ) {
 function wp_register( $before = '<li>', $after = '</li>', $echo = true ) {
 	if ( ! is_user_logged_in() ) {
 		if ( get_option('users_can_register') )
-			$link = $before . '<a href="' . esc_url( wp_registration_url() ) . '">' . __('Register') . '</a>' . $after;
+			$link = $before . '<a href="' . esc_url( wp_registration_url( 'login' ) ) . '">' . __('Register') . '</a>' . $after;
 		else
 			$link = '';
 	} else {
diff --git a/wp-login.php b/wp-login.php
index 57b2a2e..791d195 100644
--- a/wp-login.php
+++ b/wp-login.php
@@ -578,7 +578,7 @@ case 'retrievepassword' :
 <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e('Log in') ?></a>
 <?php
 if ( get_option( 'users_can_register' ) ) :
-	$registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
+	$registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url( 'login' ) ), __( 'Register' ) );
 
 	/** This filter is documented in wp-includes/general-template.php */
 	echo ' | ' . apply_filters( 'register', $registration_url );
@@ -687,7 +687,7 @@ case 'rp' :
 <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a>
 <?php
 if ( get_option( 'users_can_register' ) ) :
-	$registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
+	$registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url( 'login' ) ), __( 'Register' ) );
 
 	/** This filter is documented in wp-includes/general-template.php */
 	echo ' | ' . apply_filters( 'register', $registration_url );
@@ -742,7 +742,7 @@ case 'register' :
 	login_header(__('Registration Form'), '<p class="message register">' . __('Register For This Site') . '</p>', $errors);
 ?>
 
-<form name="registerform" id="registerform" action="<?php echo esc_url( site_url('wp-login.php?action=register', 'login_post') ); ?>" method="post" novalidate="novalidate">
+<form name="registerform" id="registerform" action="<?php echo esc_url( wp_registration_url( 'login_post' ) ); ?>" method="post" novalidate="novalidate">
 	<p>
 		<label for="user_login"><?php _e('Username') ?><br />
 		<input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr(wp_unslash($user_login)); ?>" size="20" /></label>
@@ -944,7 +944,7 @@ default:
 <p id="nav">
 <?php if ( ! isset( $_GET['checkemail'] ) || ! in_array( $_GET['checkemail'], array( 'confirm', 'newpass' ) ) ) :
 	if ( get_option( 'users_can_register' ) ) :
-		$registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
+		$registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url( 'login' ) ), __( 'Register' ) );
 
 		/** This filter is documented in wp-includes/general-template.php */
 		echo apply_filters( 'register', $registration_url ) . ' | ';
diff --git a/wp-signup.php b/wp-signup.php
index 3373f8e..34e835b 100644
--- a/wp-signup.php
+++ b/wp-signup.php
@@ -28,7 +28,7 @@ function do_signup_header() {
 add_action( 'wp_head', 'do_signup_header' );
 
 if ( !is_multisite() ) {
-	wp_redirect( site_url('wp-login.php?action=register') );
+	wp_redirect( wp_registration_url() );
 	die();
 }

