mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-28 07:07:38 +02:00
Use the correct PHP6 check. See #8701 for 2.7.x
git-svn-id: http://svn.automattic.com/wordpress/branches/2.7@10434 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
de5b342725
commit
931052a8d3
@ -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…
Reference in New Issue
Block a user