--- a/wp/wp-includes/class-wp-fatal-error-handler.php Thu Sep 29 08:06:27 2022 +0200
+++ b/wp/wp-includes/class-wp-fatal-error-handler.php Fri Sep 05 18:40:08 2025 +0200
@@ -16,6 +16,7 @@
*
* @since 5.2.0
*/
+#[AllowDynamicProperties]
class WP_Fatal_Error_Handler {
/**
@@ -24,6 +25,8 @@
* This method is registered via `register_shutdown_function()`.
*
* @since 5.2.0
+ *
+ * @global WP_Locale $wp_locale WordPress date and time locale object.
*/
public function handle() {
if ( defined( 'WP_SANDBOX_SCRAPING' ) && WP_SANDBOX_SCRAPING ) {
@@ -184,7 +187,11 @@
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.' );
} 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 {
$message = __( 'There has been a critical error on this website.' );
}
@@ -193,7 +200,7 @@
'<p>%s</p><p><a href="%s">%s</a></p>',
$message,
/* translators: Documentation about troubleshooting. */
- __( 'https://wordpress.org/support/article/faq-troubleshooting/' ),
+ __( 'https://wordpress.org/documentation/article/faq-troubleshooting/' ),
__( 'Learn more about troubleshooting WordPress.' )
);