Make WordPress Core

Changeset 48802


Ignore:
Timestamp:
08/16/2020 06:25:50 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Site Health: Add site environment type to the debug information.

Follow-up to [47919], [48188], [48372].

Props joostdevalk, Clorith.
Fixes #50887.

File:
1 edited

Legend:

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

    r48801 r48802  
    4040                $permalink_structure    = get_option( 'permalink_structure' );
    4141                $is_ssl                 = is_ssl();
     42                $is_multisite           = is_multisite();
    4243                $users_can_register     = get_option( 'users_can_register' );
    4344                $blog_public            = get_option( 'blog_public' );
    4445                $default_comment_status = get_option( 'default_comment_status' );
    45                 $is_multisite           = is_multisite();
     46                $environment_type       = wp_get_environment_type();
    4647                $core_version           = get_bloginfo( 'version' );
    4748                $core_updates           = get_core_updates();
    … …  
    100101                                        'debug' => $is_ssl,
    101102                                ),
     103                                'multisite'              => array(
     104                                        'label' => __( 'Is this a multisite?' ),
     105                                        'value' => $is_multisite ? __( 'Yes' ) : __( 'No' ),
     106                                        'debug' => $is_multisite,
     107                                ),
    102108                                'user_registration'      => array(
    103109                                        'label' => __( 'Can anyone register on this site?' ),
    … …  
    115121                                        'debug' => $default_comment_status,
    116122                                ),
    117                                 'multisite'              => array(
    118                                         'label' => __( 'Is this a multisite?' ),
    119                                         'value' => $is_multisite ? __( 'Yes' ) : __( 'No' ),
    120                                         'debug' => $is_multisite,
     123                                'environment_type'       => array(
     124                                        'label' => __( 'Environment type' ),
     125                                        'value' => $environment_type,
     126                                        'debug' => $environment_type,
    121127                                ),
    122128                        ),
Note: See TracChangeset for help on using the changeset viewer.