Make WordPress Core

Ticket #47842: #47842.3.patch

File #47842.3.patch, 1004 bytes (added by justinahinon, 5 years ago)

Good patch file

  • wp-admin/includes/class-wp-debug-data.php

     
    4242                $core_version           = get_bloginfo( 'version' );
    4343                $core_updates           = get_core_updates();
    4444                $core_update_needed     = '';
     45                $core_timezone                  = wp_timezone_string();
    4546
    4647                foreach ( $core_updates as $core => $update ) {
    4748                        if ( 'upgrade' === $update->response ) {
     
    5253                        }
    5354                }
    5455
     56                if ( !get_option( 'timezone_string' ) ) {
     57                        $core_timezone = 'UTC' . $core_timezone;
     58                }
     59
    5560                // Set up the array that holds all debug information.
    5661                $info = array();
    5762
     
    106111                                        'value' => $is_multisite ? __( 'Yes' ) : __( 'No' ),
    107112                                        'debug' => $is_multisite,
    108113                                ),
     114                                'core_timezone'                  => array(
     115                                        'label' => __( 'Site Timezone' ),
     116                                        'value' => $core_timezone,
     117                                ),
    109118                        ),
    110119                );
    111120