From df7b417d641d7ffef9e075f74db98f9444621552 Mon Sep 17 00:00:00 2001 From: spacedmonkey Date: Fri, 10 Mar 2023 15:49:18 +0000 Subject: [PATCH] Networks and Sites: Replace `get_blog_details` with `get_site`. Replace usage of the function get_blog_details with more lightweight get_site. Props spacedmonkey, kapilpaul, flixos90. Fixes #57571. Built from https://develop.svn.wordpress.org/trunk@55515 git-svn-id: http://core.svn.wordpress.org/trunk@55047 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-activate.php | 2 +- wp-includes/general-template.php | 2 +- wp-includes/version.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-activate.php b/wp-activate.php index 92b062eff0..e10df22369 100644 --- a/wp-activate.php +++ b/wp-activate.php @@ -120,7 +120,7 @@ add_filter( 'wp_robots', 'wp_robots_sensitive_page' ); get_header( 'wp-activate' ); -$blog_details = get_blog_details(); +$blog_details = get_site(); ?>
diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 5e885c571d..9fa9b3230f 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -652,7 +652,7 @@ function wp_lostpassword_url( $redirect = '' ) { } if ( is_multisite() ) { - $blog_details = get_blog_details(); + $blog_details = get_site(); $wp_login_path = $blog_details->path . 'wp-login.php'; } else { $wp_login_path = 'wp-login.php'; diff --git a/wp-includes/version.php b/wp-includes/version.php index e815bf3e87..4cbc1226ea 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.3-alpha-55514'; +$wp_version = '6.3-alpha-55515'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.