From c16646e8ba8651cb09662b15be8b2162b291502d Mon Sep 17 00:00:00 2001 From: jrfnl Date: Sat, 26 Jul 2025 22:54:25 +0200 Subject: [PATCH] EscapingFunctionsTrait: remove `wp_kses_allowed_html()` from escaping functions The `wp_kses_allowed_html()` function is not an escaping function, but retrieves an array of allowed HTML tags and attributes for a given context. Ref: https://developer.wordpress.org/reference/functions/wp_kses_allowed_html/ --- WordPress/Helpers/EscapingFunctionsTrait.php | 1 - 1 file changed, 1 deletion(-) diff --git a/WordPress/Helpers/EscapingFunctionsTrait.php b/WordPress/Helpers/EscapingFunctionsTrait.php index 3df484ff62..b3fbf61d57 100644 --- a/WordPress/Helpers/EscapingFunctionsTrait.php +++ b/WordPress/Helpers/EscapingFunctionsTrait.php @@ -90,7 +90,6 @@ trait EscapingFunctionsTrait { 'urlencode_deep' => true, 'urlencode' => true, 'wp_json_encode' => true, - 'wp_kses_allowed_html' => true, 'wp_kses_data' => true, 'wp_kses_one_attr' => true, 'wp_kses_post' => true,