From 9133e1c25e93f93c140846fade2156e6ed6097b7 Mon Sep 17 00:00:00 2001 From: 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: http://svn.automattic.com/wordpress/trunk@13185 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 fc60a825e..967c90a84 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 0993a1468..e18fd2345 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.