From 86ac5e1432793b35be1779803444cc9b44b529a4 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 6 May 2020 14:38:17 +0000 Subject: [PATCH] Site Health: Do not trigger the fatal error handler while updates are being installed. Triggering the error handler during updates may cause false positives. For example, updates may temporarily "fail" while files are moved around, but work fine once completed. Sending emails about temporary failures would just be confusing to the recipient. Props Clorith, airamerica. Fixes #48964. Built from https://develop.svn.wordpress.org/trunk@47768 git-svn-id: http://core.svn.wordpress.org/trunk@47544 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-fatal-error-handler.php | 5 +++++ wp-includes/version.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/wp-includes/class-wp-fatal-error-handler.php b/wp-includes/class-wp-fatal-error-handler.php index 43135e720d..a461281bec 100644 --- a/wp-includes/class-wp-fatal-error-handler.php +++ b/wp-includes/class-wp-fatal-error-handler.php @@ -30,6 +30,11 @@ class WP_Fatal_Error_Handler { return; } + // Do not trigger the fatal error handler while updates are being installed. + if ( wp_in_maintenance_mode() ) { + return; + } + try { // Bail if no error found. $error = $this->detect_error(); diff --git a/wp-includes/version.php b/wp-includes/version.php index 31709f6212..ad2bb8b4ce 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-alpha-47766'; +$wp_version = '5.5-alpha-47768'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.