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

Follow-up to [44986].

Props sebastienserre, mukesh27.
Fixes #60081.
Built from https://develop.svn.wordpress.org/trunk@57245


git-svn-id: http://core.svn.wordpress.org/trunk@56751 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2024-01-07 16:09:21 +00:00
parent 7670c25979
commit 45df401868
2 changed files with 9 additions and 1 deletions

View File

@ -381,6 +381,14 @@ class WP_Debug_Data {
// Conditionally add debug information for multisite setups. // Conditionally add debug information for multisite setups.
if ( is_multisite() ) { if ( is_multisite() ) {
$site_id = get_current_blog_id();
$info['wp-core']['fields']['site_id'] = array(
'label' => __( 'Site ID' ),
'value' => $site_id,
'debug' => $site_id,
);
$network_query = new WP_Network_Query(); $network_query = new WP_Network_Query();
$network_ids = $network_query->query( $network_ids = $network_query->query(
array( array(

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.5-alpha-57244'; $wp_version = '6.5-alpha-57245';
/** /**
* 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.