Make WordPress Core


Ignore:
Timestamp:
05/06/2020 02:36:47 PM (4 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-fatal-error-handler.php

    r47515 r47768  
    3131        }
    3232
     33        // Do not trigger the fatal error handler while updates are being installed.
     34        if ( wp_in_maintenance_mode() ) {
     35            return;
     36        }
     37
    3338        try {
    3439            // Bail if no error found.
Note: See TracChangeset for help on using the changeset viewer.