Make WordPress Core

Changeset 57245


Ignore:
Timestamp:
01/07/2024 04:07:47 PM (4 months ago)
Author:
SergeyBiryukov
Message:

Site Health: Include site ID in debug data on multisite installations.

Follow-up to [44986].

Props sebastienserre, mukesh27.
Fixes #60081.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-debug-data.php

    r56509 r57245  
    382382        // Conditionally add debug information for multisite setups.
    383383        if ( is_multisite() ) {
     384            $site_id = get_current_blog_id();
     385
     386            $info['wp-core']['fields']['site_id'] = array(
     387                'label' => __( 'Site ID' ),
     388                'value' => $site_id,
     389                'debug' => $site_id,
     390            );
     391
    384392            $network_query = new WP_Network_Query();
    385393            $network_ids   = $network_query->query(
Note: See TracChangeset for help on using the changeset viewer.