Skip to content

Commit

Permalink
relocate to multisite area
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienserre authored Dec 29, 2023
1 parent cc95f60 commit 7d327a1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/wp-admin/includes/class-wp-debug-data.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ public static function debug_data() {
$environment_type = wp_get_environment_type();
$core_version = get_bloginfo( 'version' );
$core_updates = get_core_updates();
$site_ID = get_current_blog_id();
$core_update_needed = '';

if ( is_array( $core_updates ) ) {
Expand Down Expand Up @@ -110,11 +109,6 @@ public static function debug_data() {
'value' => $is_multisite ? __( 'Yes' ) : __( 'No' ),
'debug' => $is_multisite,
),
'site_ID' => array(
'label' => __( 'Site ID' ),
'value' => $site_ID,
'debug' => $site_ID,
),
'user_registration' => array(
'label' => __( 'Can anyone register on this site?' ),
'value' => $users_can_register ? __( 'Yes' ) : __( 'No' ),
Expand Down Expand Up @@ -387,6 +381,7 @@ public static function debug_data() {

// Conditionally add debug information for multisite setups.
if ( is_multisite() ) {
$site_ID = get_current_blog_id();
$network_query = new WP_Network_Query();
$network_ids = $network_query->query(
array(
Expand All @@ -410,6 +405,11 @@ public static function debug_data() {
'label' => __( 'Network count' ),
'value' => $network_query->found_networks,
);
'site_ID' => array(
'label' => __( 'Site ID' ),
'value' => $site_ID,
'debug' => $site_ID,
),

Check failure on line 412 in src/wp-admin/includes/class-wp-debug-data.php

View workflow job for this annotation

GitHub Actions / PHP coding standards

Spaces must be used for mid-line alignment; tabs are not allowed

Check failure on line 412 in src/wp-admin/includes/class-wp-debug-data.php

View workflow job for this annotation

GitHub Actions / PHP coding standards

Whitespace found at end of line
}

$info['wp-core']['fields']['user_count'] = array(
Expand Down

0 comments on commit 7d327a1

Please sign in to comment.