From dfe0736002a409986c5273a53ace22583c692ca2 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 31 Dec 2010 21:01:30 +0000 Subject: [PATCH] Add a note about E_DEPRECATED in wp_debug_mode() because I keep seeing reports about people trying to define it. git-svn-id: https://develop.svn.wordpress.org/trunk@17194 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/load.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/load.php b/wp-includes/load.php index a384f1e3de..298dd7dfb5 100644 --- a/wp-includes/load.php +++ b/wp-includes/load.php @@ -256,6 +256,8 @@ function timer_stop( $display = 0, $precision = 3 ) { // if called like timer_st */ function wp_debug_mode() { if ( WP_DEBUG ) { + // E_DEPRECATED is a core PHP constant in PHP 5.3. Don't define this yourself. + // The two statements are equivalent, just one is for 5.3+ and for less than 5.3. if ( defined( 'E_DEPRECATED' ) ) error_reporting( E_ALL & ~E_DEPRECATED & ~E_STRICT ); else