Changeset 59155 for trunk/src/wp-admin/includes/class-wp-debug-data.php
- Timestamp:
- 10/01/2024 05:57:49 PM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-debug-data.php
r59147 r59155 1333 1333 1334 1334 // Check WP_ENVIRONMENT_TYPE. 1335 if ( defined( 'WP_ENVIRONMENT_TYPE' ) && WP_ENVIRONMENT_TYPE ) { 1336 $wp_environment_type = WP_ENVIRONMENT_TYPE; 1335 if ( defined( 'WP_ENVIRONMENT_TYPE' ) ) { 1336 $wp_environment_type = WP_ENVIRONMENT_TYPE ? WP_ENVIRONMENT_TYPE : __( 'Empty value' ); 1337 $wp_environment_type_debug = WP_ENVIRONMENT_TYPE; 1337 1338 } else { 1338 $wp_environment_type = __( 'Undefined' ); 1339 $wp_environment_type = __( 'Undefined' ); 1340 $wp_environment_type_debug = 'undefined'; 1339 1341 } 1340 1342 1341 1343 // Check DB_COLLATE. 1342 if ( defined( 'DB_COLLATE' ) && DB_COLLATE ) { 1343 $wp_db_collate = DB_COLLATE; 1344 } elseif ( defined( 'DB_COLLATE' ) && empty( DB_COLLATE ) ) { 1345 $wp_db_collate = __( 'Defined, but empty' ); 1344 if ( defined( 'DB_COLLATE' ) ) { 1345 $db_collate = DB_COLLATE ? DB_COLLATE : __( 'Empty value' ); 1346 $db_collate_debug = DB_COLLATE; 1346 1347 } else { 1347 $wp_db_collate = __( 'Undefined' ); 1348 $db_collate = __( 'Undefined' ); 1349 $db_collate_debug = 'undefined'; 1348 1350 } 1349 1351 … … 1423 1425 'label' => 'WP_ENVIRONMENT_TYPE', 1424 1426 'value' => $wp_environment_type, 1425 'debug' => $wp_environment_type ,1427 'debug' => $wp_environment_type_debug, 1426 1428 ), 1427 1429 'WP_DEVELOPMENT_MODE' => array( … … 1437 1439 'DB_COLLATE' => array( 1438 1440 'label' => 'DB_COLLATE', 1439 'value' => $ wp_db_collate,1440 'debug' => $ wp_db_collate,1441 'value' => $db_collate, 1442 'debug' => $db_collate_debug, 1441 1443 ), 1442 1444 );
Note: See TracChangeset
for help on using the changeset viewer.