mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Site Health: Improve the fatal error handling text in multisite scenarios.
The fatal error handler is responsible for providing a more user-friendly page to visitors if a site would normally encounter a fatal error, informing them of the next steps to access recovery mode (where applicable). Those next steps would be to check the email address for the site administrator, but this was only the case for single site installs; In a multisite scenario, no email is sent. This changes the text to account for that, still informing site administrators to check their email if it is a single site, but for multisite directing users to reach out to their site administrator for further assistance, so that they may take appropriate action. Props rkaiser0324, Clorith. Fixes #48929. Built from https://develop.svn.wordpress.org/trunk@53951 git-svn-id: http://core.svn.wordpress.org/trunk@53510 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7518c75208
commit
00fb102dae
@ -184,7 +184,11 @@ class WP_Fatal_Error_Handler {
|
|||||||
if ( true === $handled && wp_is_recovery_mode() ) {
|
if ( true === $handled && wp_is_recovery_mode() ) {
|
||||||
$message = __( 'There has been a critical error on this website, putting it in recovery mode. Please check the Themes and Plugins screens for more details. If you just installed or updated a theme or plugin, check the relevant page for that first.' );
|
$message = __( 'There has been a critical error on this website, putting it in recovery mode. Please check the Themes and Plugins screens for more details. If you just installed or updated a theme or plugin, check the relevant page for that first.' );
|
||||||
} elseif ( is_protected_endpoint() && wp_recovery_mode()->is_initialized() ) {
|
} elseif ( is_protected_endpoint() && wp_recovery_mode()->is_initialized() ) {
|
||||||
$message = __( 'There has been a critical error on this website. Please check your site admin email inbox for instructions.' );
|
if ( is_multisite() ) {
|
||||||
|
$message = __( 'There has been a critical error on this website. Please reach out to your site administrator, and inform them of this error for further assistance.' );
|
||||||
|
} else {
|
||||||
|
$message = __( 'There has been a critical error on this website. Please check your site admin email inbox for instructions.' );
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$message = __( 'There has been a critical error on this website.' );
|
$message = __( 'There has been a critical error on this website.' );
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.1-alpha-53950';
|
$wp_version = '6.1-alpha-53951';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user