From a3e747990ccbac1c984dbaf906558d0799ad4de1 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 16 Sep 2019 17:23:55 +0000 Subject: [PATCH] Site Health: Add a link to "Debugging in WordPress" support article to fatal PHP error handler's default message. Props garrett-eclipse, tobifjellner, dkarfa, hareesh-pillai. Fixes #47681. Built from https://develop.svn.wordpress.org/trunk@46151 git-svn-id: http://core.svn.wordpress.org/trunk@45963 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-fatal-error-handler.php | 8 ++++++++ wp-includes/version.php | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/wp-includes/class-wp-fatal-error-handler.php b/wp-includes/class-wp-fatal-error-handler.php index d63e58d062..7e4f6d8c3c 100644 --- a/wp-includes/class-wp-fatal-error-handler.php +++ b/wp-includes/class-wp-fatal-error-handler.php @@ -183,6 +183,14 @@ class WP_Fatal_Error_Handler { $message = __( 'There has been a critical error on your website.' ); } + $message = sprintf( + '

%s

%s

', + $message, + /* translators: Documentation explaining debugging in WordPress. */ + esc_url( __( 'https://wordpress.org/support/article/debugging-in-wordpress/' ) ), + __( 'Learn more about debugging in WordPress.' ) + ); + $args = array( 'response' => 500, 'exit' => false, diff --git a/wp-includes/version.php b/wp-includes/version.php index 71d4dd6c38..7ef1c609e5 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-alpha-46150'; +$wp_version = '5.3-alpha-46151'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.