Make WordPress Core

Ticket #49709: no-encode.patch

File no-encode.patch, 1.1 KB (added by rob006, 5 years ago)
  • wp-includes/class-wp-fatal-error-handler.php

    From 5c02b17900c5c972329bb5e67775c76fffd9a60a Mon Sep 17 00:00:00 2001
    From: Robert Korulczyk <robert@korulczyk.pl>
    Date: Fri, 27 Mar 2020 12:08:04 +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..43135e720db 100644
    a b protected function display_default_error_template( $error, $handled ) { 
    187187                        '<p>%s</p><p><a href="%s">%s</a></p>',
    188188                        $message,
    189189                        /* translators: Documentation explaining debugging in WordPress. */
    190                         esc_url( __( 'https://wordpress.org/support/article/debugging-in-wordpress/' ) ),
     190                        __( 'https://wordpress.org/support/article/debugging-in-wordpress/' ),
    191191                        __( 'Learn more about debugging in WordPress.' )
    192192                );
    193193