From 95571ab9d4776b01223239456f1369927d121994 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Sat, 24 Jan 2009 13:20:59 +0000 Subject: [PATCH] Use the correct PHP6 check. git-svn-id: https://develop.svn.wordpress.org/trunk@10433 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-settings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-settings.php b/wp-settings.php index 109a32c2b1..8778a0c960 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -202,7 +202,7 @@ if (defined('WP_DEBUG') and WP_DEBUG == true) { error_reporting(E_ALL); } else { // Unicode Extension is in PHP 6.0 only or do version check when this changes. - if ( version_compare( '6.0', phpversion(), '>' ) ) + if ( function_exists('unicode_decode') ) error_reporting( E_ALL ^ E_DEPRECATED ^ E_NOTICE ^ E_USER_NOTICE ^ E_STRICT ); else if ( defined( 'E_DEPRECATED' ) ) // Introduced in PHP 5.3 error_reporting( E_ALL ^ E_DEPRECATED ^ E_NOTICE ^ E_USER_NOTICE );