Changeset 44453 for trunk/src/wp-includes/load.php
- Timestamp:
- 01/08/2019 03:41:38 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/load.php
r43983 r44453 308 308 * as false will force errors to be hidden. 309 309 * 310 * When `WP_DEBUG_LOG` is true, errors will be logged to debug.log in the content311 * directory.310 * When `WP_DEBUG_LOG` is true, errors will be logged to `wp-content/debug.log`. 311 * When `WP_DEBUG_LOG` is a valid path, errors will be logged to the specified file. 312 312 * 313 313 * Errors are never displayed for XML-RPC, REST, and Ajax requests. 314 314 * 315 315 * @since 3.0.0 316 * @since 5.1.0 `WP_DEBUG_LOG` can be a file path. 316 317 * @access private 317 318 */ … … 342 343 } 343 344 344 if ( WP_DEBUG_LOG ) { 345 if ( in_array( strtolower( (string) WP_DEBUG_LOG ), array( 'true', '1' ), true ) ) { 346 $log_path = WP_CONTENT_DIR . '/debug.log'; 347 } elseif ( is_string( WP_DEBUG_LOG ) ) { 348 $log_path = WP_DEBUG_LOG; 349 } else { 350 $log_path = false; 351 } 352 353 if ( $log_path ) { 345 354 ini_set( 'log_errors', 1 ); 346 ini_set( 'error_log', WP_CONTENT_DIR . '/debug.log');355 ini_set( 'error_log', $log_path ); 347 356 } 348 357 } else {
Note: See TracChangeset
for help on using the changeset viewer.