Skip to content
Browse files

E_RECOVERABLE_ERROR is always available in PHP 5.2+. Remove back comp…

…at code. Props hakre. see #16920

git-svn-id: http://svn.automattic.com/wordpress/trunk@17629 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
1 parent 2d51628 commit dfafbed043d258c538dbddb33304941f473aca02 ryan committed Apr 11, 2011
Showing with 1 addition and 4 deletions.
  1. +1 −4 wp-load.php
View
5 wp-load.php
@@ -19,10 +19,7 @@
/** Define ABSPATH as this files directory */
define( 'ABSPATH', dirname(__FILE__) . '/' );
-if ( defined('E_RECOVERABLE_ERROR') )
- error_reporting(E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR);
-else
- error_reporting(E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING);
+error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR );
if ( file_exists( ABSPATH . 'wp-config.php') ) {

0 comments on commit dfafbed

Please sign in to comment.
Something went wrong with that request. Please try again.