Make WordPress Core


Ignore:
Timestamp:
03/10/2023 03:47:43 PM (2 years ago)
Author:
spacedmonkey
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/general-template.php

    r55276 r55515  
    653653
    654654    if ( is_multisite() ) {
    655         $blog_details  = get_blog_details();
     655        $blog_details  = get_site();
    656656        $wp_login_path = $blog_details->path . 'wp-login.php';
    657657    } else {
Note: See TracChangeset for help on using the changeset viewer.