From b7345c2f73c17b6d6eea8778b781bb33a97e7f63 Mon Sep 17 00:00:00 2001
From: Robert Korulczyk <robert@korulczyk.pl>
Date: Fri, 27 Mar 2020 12:04:29 +0100
Subject: [PATCH] Do not use `esc_url()`, which may be undefined
fix #49709: Call to undefined function esc_url() in wp-includes/class-wp-fatal-error-handler.php:190
---
wp-includes/class-wp-fatal-error-handler.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/wp-includes/class-wp-fatal-error-handler.php b/wp-includes/class-wp-fatal-error-handler.php
index f8c431ab3db..648ba3bceb4 100644
a
|
b
|
protected function display_default_error_template( $error, $handled ) { |
187 | 187 | '<p>%s</p><p><a href="%s">%s</a></p>', |
188 | 188 | $message, |
189 | 189 | /* translators: Documentation explaining debugging in WordPress. */ |
190 | | esc_url( __( 'https://wordpress.org/support/article/debugging-in-wordpress/' ) ), |
| 190 | htmlspecialchars( __( 'https://wordpress.org/support/article/debugging-in-wordpress/' ), ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8', false ), |
191 | 191 | __( 'Learn more about debugging in WordPress.' ) |
192 | 192 | ); |
193 | 193 | |