Commit ca2c7f19 authored by Sergey Biryukov's avatar Sergey Biryukov
Browse files

Login and Registration: Correct the logic for determining the path to...

Login and Registration: Correct the logic for determining the path to `wp-login.php` in `wp_lostpassword_url()`.

Follow-up to [48672], [48673].

See #39311.
Built from https://develop.svn.wordpress.org/trunk@48674


git-svn-id: https://core.svn.wordpress.org/trunk@48436 1a063a9b-81f0-0310-95a4-ce76da25c4cd
parent a9aa59ea
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -613,14 +613,14 @@ function wp_lostpassword_url( $redirect = '' ) {
		$args['redirect_to'] = urlencode( $redirect );
	}

	$site_path = '';

	if ( is_multisite() ) {
		$blog_details  = get_blog_details();
		$site_path    = $blog_details->path . 'wp-login.php';
		$wp_login_path = $blog_details->path . 'wp-login.php';
	} else {
		$wp_login_path = 'wp-login.php';
	}

	$lostpassword_url = add_query_arg( $args, network_site_url( $site_path . 'wp-login.php', 'login' ) );
	$lostpassword_url = add_query_arg( $args, network_site_url( $wp_login_path, 'login' ) );

	/**
	 * Filters the Lost Password URL.
+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@
 *
 * @global string $wp_version
 */
$wp_version = '5.5-beta4-48673';
$wp_version = '5.5-beta4-48674';

/**
 * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.