Skip to content

Commit

Permalink
Networks and Sites: Replace get_blog_details with get_site.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
spacedmonkey committed Mar 10, 2023
1 parent 4969220 commit df7b417
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion wp-activate.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function wpmu_activate_stylesheet() {

get_header( 'wp-activate' );

$blog_details = get_blog_details();
$blog_details = get_site();
?>

<div id="signup-content" class="widecolumn">
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/general-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit df7b417

Please sign in to comment.