Skip to content
Permalink
Browse files

Site Health: Add database charset and collation information to debug …

…info.

Props sharaz, Clorith, SergeyBiryukov.
Fixes #47828.

git-svn-id: https://develop.svn.wordpress.org/trunk@45782 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
SergeyBiryukov committed Aug 12, 2019
1 parent c76271c commit 83eb411e2744e24cc147ecff076e079e1aa9a5ba
Showing with 22 additions and 0 deletions.
  1. +22 −0 src/wp-admin/includes/class-wp-debug-data.php
@@ -294,6 +294,16 @@ static function debug_data() {
'value' => $wp_local_dev,
'debug' => $wp_local_dev_debug,
),
'DB_CHARSET' => array(
'label' => 'DB_CHARSET',
'value' => ( defined( 'DB_CHARSET' ) ? DB_CHARSET : __( 'Undefined' ) ),
'debug' => ( defined( 'DB_CHARSET' ) ? DB_CHARSET : 'undefined' ),
),
'DB_COLLATE' => array(
'label' => 'DB_COLLATE',
'value' => ( defined( 'DB_COLLATE' ) ? DB_COLLATE : __( 'Undefined' ) ),
'debug' => ( defined( 'DB_COLLATE' ) ? DB_COLLATE : 'undefined' ),
),
),
);
@@ -757,6 +767,18 @@ static function debug_data() {
'private' => true,
);
$info['wp-database']['fields']['database_charset'] = array(
'label' => __( 'Database charset' ),
'value' => $wpdb->charset,
'private' => true,
);
$info['wp-database']['fields']['database_collate'] = array(
'label' => __( 'Database collation' ),
'value' => $wpdb->collate,
'private' => true,
);
// List must use plugins if there are any.
$mu_plugins = get_mu_plugins();

0 comments on commit 83eb411

Please sign in to comment.
You can’t perform that action at this time.