Make WordPress Core

Ticket #47842: #47842.3

File #47842.3, 1004 bytes (added by justinahinon, 5 years ago)
Line 
1Index: wp-admin/includes/class-wp-debug-data.php
2===================================================================
3--- wp-admin/includes/class-wp-debug-data.php   (revision 45888)
4+++ wp-admin/includes/class-wp-debug-data.php   (working copy)
5@@ -42,6 +42,7 @@
6                $core_version           = get_bloginfo( 'version' );
7                $core_updates           = get_core_updates();
8                $core_update_needed     = '';
9+               $core_timezone                  = wp_timezone_string();
10 
11                foreach ( $core_updates as $core => $update ) {
12                        if ( 'upgrade' === $update->response ) {
13@@ -52,6 +53,10 @@
14                        }
15                }
16 
17+               if ( !get_option( 'timezone_string' ) ) {
18+                       $core_timezone = 'UTC' . $core_timezone;
19+               }
20+
21                // Set up the array that holds all debug information.
22                $info = array();
23 
24@@ -106,6 +111,10 @@
25                                        'value' => $is_multisite ? __( 'Yes' ) : __( 'No' ),
26                                        'debug' => $is_multisite,
27                                ),
28+                               'core_timezone'                  => array(
29+                                       'label' => __( 'Site Timezone' ),
30+                                       'value' => $core_timezone,
31+                               ),
32                        ),
33                );
34