Changeset 52021
- Timestamp:
- 11/05/2021 09:03:34 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-debug-data.php
r51956 r52021 235 235 } 236 236 237 // Check WP_LOCAL_DEV. 238 if ( defined( 'WP_LOCAL_DEV' ) ) { 239 $wp_local_dev = WP_LOCAL_DEV ? __( 'Enabled' ) : __( 'Disabled' ); 240 $wp_local_dev_debug = WP_LOCAL_DEV ? 'true' : 'false'; 241 } else { 242 $wp_local_dev = __( 'Undefined' ); 243 $wp_local_dev_debug = 'undefined'; 237 // Check WP_ENVIRONMENT_TYPE. 238 if ( defined( 'WP_ENVIRONMENT_TYPE' ) ) { 239 $wp_environment_type = WP_ENVIRONMENT_TYPE; 240 } else { 241 $wp_environment_type = __( 'Undefined' ); 244 242 } 245 243 … … 319 317 'debug' => $compress_css_debug, 320 318 ), 321 'WP_ LOCAL_DEV'=> array(322 'label' => 'WP_ LOCAL_DEV',323 'value' => $wp_ local_dev,324 'debug' => $wp_ local_dev_debug,319 'WP_ENVIRONMENT_TYPE' => array( 320 'label' => 'WP_ENVIRONMENT_TYPE', 321 'value' => $wp_environment_type, 322 'debug' => $wp_environment_type, 325 323 ), 326 324 'DB_CHARSET' => array(
Note: See TracChangeset
for help on using the changeset viewer.