mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-02 05:31:25 +01:00
Login and Registration: Only call get_blog_details()
in wp_lostpassword_url()
on Multisite.
The function does not exist on single site. Follow-up to [48672]. See #39311. Built from https://develop.svn.wordpress.org/trunk@48673 git-svn-id: http://core.svn.wordpress.org/trunk@48435 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
31702738d6
commit
466a057422
@ -613,9 +613,14 @@ function wp_lostpassword_url( $redirect = '' ) {
|
|||||||
$args['redirect_to'] = urlencode( $redirect );
|
$args['redirect_to'] = urlencode( $redirect );
|
||||||
}
|
}
|
||||||
|
|
||||||
$blog_details = get_blog_details();
|
$site_path = '';
|
||||||
|
|
||||||
$lostpassword_url = add_query_arg( $args, network_site_url( $blog_details->path . 'wp-login.php', 'login' ) );
|
if ( is_multisite() ) {
|
||||||
|
$blog_details = get_blog_details();
|
||||||
|
$site_path = $blog_details->path . 'wp-login.php';
|
||||||
|
}
|
||||||
|
|
||||||
|
$lostpassword_url = add_query_arg( $args, network_site_url( $site_path . 'wp-login.php', 'login' ) );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Filters the Lost Password URL.
|
* Filters the Lost Password URL.
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.5-beta4-48672';
|
$wp_version = '5.5-beta4-48673';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user