Skip to content

Commit 0083020

Browse files
author
Ethan Jon
committed
WP_DEBUG
1 parent 3af929e commit 0083020

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

wordpress/php.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
display_errors = 0
21
upload_max_filesize = 100M

wordpress/wp-config.php

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,17 @@
8080
*
8181
* @link https://codex.wordpress.org/Debugging_in_WordPress
8282
*/
83-
define( 'WP_DEBUG', $_ENV['WP_DEBUG'] == 'true' );
84-
define( 'SAVEQUERIES', $_ENV['WP_DEBUG'] == 'true' );
83+
if ( $_ENV['WP_DEBUG'] == 'true' ) {
84+
define( 'WP_DEBUG', true );
85+
define( 'WP_DEBUG_DISPLAY', true );
86+
define( 'SAVEQUERIES', true );
87+
} else {
88+
define( 'WP_DEBUG', false );
89+
define( 'WP_DEBUG_DISPLAY', false );
90+
define( 'SAVEQUERIES', false );
91+
ini_set( 'display_errors', 'Off' );
92+
ini_set( 'error_reporting', E_ALL );
93+
}
8594

8695
/* That's all, stop editing! Happy blogging. */
8796

0 commit comments

Comments
 (0)