From a4107f75c1164b229e6d65889fb049236587c5f5 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 17 Feb 2010 20:36:00 +0000 Subject: [PATCH] Add initial WP_DEBUG define to wp-config-sample.php and suggest plugin/theme developers use it. Fixes #12236 git-svn-id: https://develop.svn.wordpress.org/trunk@13185 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-config-sample.php | 9 +++++++++ wp-includes/load.php | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/wp-config-sample.php b/wp-config-sample.php index fc60a825e7..967c90a844 100644 --- a/wp-config-sample.php +++ b/wp-config-sample.php @@ -71,6 +71,15 @@ $table_prefix = 'wp_'; */ define ('WPLANG', ''); +/** + * For developers: WordPress debugging mode. + * + * Change this to true to enable the display of notices during development. + * It is strongly recommended that plugin and theme developers use WP_DEBUG + * in their development environments. + */ +define('WP_DEBUG', false); + /* That's all, stop editing! Happy blogging. */ /** Absolute path to the WordPress directory. */ diff --git a/wp-includes/load.php b/wp-includes/load.php index 0993a1468a..e18fd2345b 100644 --- a/wp-includes/load.php +++ b/wp-includes/load.php @@ -220,7 +220,7 @@ function timer_stop( $display = 0, $precision = 3 ) { // if called like timer_st * notices, including one when a deprecated WordPress function, function argument, * or file is used. Deprecated code may be removed from a later version. * - * It is strongly recommended that plugin and theme authors use WP_DEBUG for their + * It is strongly recommended that plugin and theme developers use WP_DEBUG in their * development environments. * * When WP_DEBUG_DISPLAY is true, WordPress will force errors to be displayed.