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
This commit is contained in:
Andrew Nacin 2010-02-17 20:36:00 +00:00
parent 5f268b6d43
commit a4107f75c1
2 changed files with 10 additions and 1 deletions

View File

@ -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. */

View File

@ -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.