mirror of
git://develop.git.wordpress.org/
synced 2025-02-24 00:24:52 +01:00
Use the correct PHP6 check.
git-svn-id: https://develop.svn.wordpress.org/trunk@10433 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ac7631e20b
commit
95571ab9d4
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user