Skip to content

Commit

Permalink
Site Health: Remove esc_url() used on "Debugging in WordPress" arti…
Browse files Browse the repository at this point in the history
…cle URL in `WP_Fatal_Error_Handler::display_default_error_template()`.

The function may not be available in some contexts, for example if a fatal error happens in `advanced-cache.php` drop-in.

Props rob006.
Reviewed by jorgefilipecosta, SergeyBiryukov.
Merges [47515] to the 5.4 branch.
Fixes #49709.
Built from https://develop.svn.wordpress.org/branches/5.4@47523


git-svn-id: http://core.svn.wordpress.org/branches/5.4@47298 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
SergeyBiryukov committed Mar 27, 2020
1 parent f1d8ec0 commit 285e530
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wp-includes/class-wp-fatal-error-handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ protected function display_default_error_template( $error, $handled ) {
'<p>%s</p><p><a href="%s">%s</a></p>',
$message,
/* translators: Documentation explaining debugging in WordPress. */
esc_url( __( 'https://wordpress.org/support/article/debugging-in-wordpress/' ) ),
__( 'https://wordpress.org/support/article/debugging-in-wordpress/' ),
__( 'Learn more about debugging in WordPress.' )
);

Expand Down
2 changes: 1 addition & 1 deletion wp-includes/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.4-RC4-47522';
$wp_version = '5.4-RC4-47523';

/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
Expand Down

0 comments on commit 285e530

Please sign in to comment.