diff --git a/src/wp-load.php b/src/wp-load.php
index 3f4d764bfc..5a0b8f1ccc 100644
--- a/src/wp-load.php
+++ b/src/wp-load.php
@@ -21,7 +21,15 @@ if ( ! defined( 'ABSPATH' ) ) {
 	define( 'ABSPATH', __DIR__ . '/' );
 }
 
-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 );
+/*
+ * The error_reporting() function can be disabled in php.ini and may be done so for
+ * security purposes. On systems with this function disabled it's best to add a dummy
+ * function to the wp-config.php file but as this call to the function is run prior
+ * to wp-config.php loading, it is wrapped in a function_exists() check.
+ */
+if ( function_exists( 'error_reporting' ) ) {
+	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 wp-config.php exists in the WordPress root, or if it exists in the root and wp-settings.php
