Site Health: Add site environment type to the debug information.
Follow-up to [47919], [48188], [48372]. Props joostdevalk, Clorith. Fixes #50887. Built from https://develop.svn.wordpress.org/trunk@48802 git-svn-id: http://core.svn.wordpress.org/trunk@48564 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7cb2ca73a2
commit
d9135ad9d0
|
@ -39,10 +39,11 @@ class WP_Debug_Data {
|
||||||
$upload_dir = wp_upload_dir();
|
$upload_dir = wp_upload_dir();
|
||||||
$permalink_structure = get_option( 'permalink_structure' );
|
$permalink_structure = get_option( 'permalink_structure' );
|
||||||
$is_ssl = is_ssl();
|
$is_ssl = is_ssl();
|
||||||
|
$is_multisite = is_multisite();
|
||||||
$users_can_register = get_option( 'users_can_register' );
|
$users_can_register = get_option( 'users_can_register' );
|
||||||
$blog_public = get_option( 'blog_public' );
|
$blog_public = get_option( 'blog_public' );
|
||||||
$default_comment_status = get_option( 'default_comment_status' );
|
$default_comment_status = get_option( 'default_comment_status' );
|
||||||
$is_multisite = is_multisite();
|
$environment_type = wp_get_environment_type();
|
||||||
$core_version = get_bloginfo( 'version' );
|
$core_version = get_bloginfo( 'version' );
|
||||||
$core_updates = get_core_updates();
|
$core_updates = get_core_updates();
|
||||||
$core_update_needed = '';
|
$core_update_needed = '';
|
||||||
|
@ -99,6 +100,11 @@ class WP_Debug_Data {
|
||||||
'value' => $is_ssl ? __( 'Yes' ) : __( 'No' ),
|
'value' => $is_ssl ? __( 'Yes' ) : __( 'No' ),
|
||||||
'debug' => $is_ssl,
|
'debug' => $is_ssl,
|
||||||
),
|
),
|
||||||
|
'multisite' => array(
|
||||||
|
'label' => __( 'Is this a multisite?' ),
|
||||||
|
'value' => $is_multisite ? __( 'Yes' ) : __( 'No' ),
|
||||||
|
'debug' => $is_multisite,
|
||||||
|
),
|
||||||
'user_registration' => array(
|
'user_registration' => array(
|
||||||
'label' => __( 'Can anyone register on this site?' ),
|
'label' => __( 'Can anyone register on this site?' ),
|
||||||
'value' => $users_can_register ? __( 'Yes' ) : __( 'No' ),
|
'value' => $users_can_register ? __( 'Yes' ) : __( 'No' ),
|
||||||
|
@ -114,10 +120,10 @@ class WP_Debug_Data {
|
||||||
'value' => 'open' === $default_comment_status ? _x( 'Open', 'comment status' ) : _x( 'Closed', 'comment status' ),
|
'value' => 'open' === $default_comment_status ? _x( 'Open', 'comment status' ) : _x( 'Closed', 'comment status' ),
|
||||||
'debug' => $default_comment_status,
|
'debug' => $default_comment_status,
|
||||||
),
|
),
|
||||||
'multisite' => array(
|
'environment_type' => array(
|
||||||
'label' => __( 'Is this a multisite?' ),
|
'label' => __( 'Environment type' ),
|
||||||
'value' => $is_multisite ? __( 'Yes' ) : __( 'No' ),
|
'value' => $environment_type,
|
||||||
'debug' => $is_multisite,
|
'debug' => $environment_type,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.6-alpha-48801';
|
$wp_version = '5.6-alpha-48802';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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.
|
||||||
|
|
Loading…
Reference in New Issue