We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3af929e commit 0083020Copy full SHA for 0083020
wordpress/php.ini
@@ -1,2 +1 @@
1
-display_errors = 0
2
upload_max_filesize = 100M
wordpress/wp-config.php
@@ -80,8 +80,17 @@
80
*
81
* @link https://codex.wordpress.org/Debugging_in_WordPress
82
*/
83
-define( 'WP_DEBUG', $_ENV['WP_DEBUG'] == 'true' );
84
-define( 'SAVEQUERIES', $_ENV['WP_DEBUG'] == 'true' );
+if ( $_ENV['WP_DEBUG'] == 'true' ) {
+ 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
+}
94
95
/* That's all, stop editing! Happy blogging. */
96
0 commit comments