From 7529944c8dd54f3a20df074e0ffa8f9409aee200 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Fri, 7 Jun 2024 16:50:15 +0000 Subject: [PATCH] General: Fix array format for allowed HTML passed into wp_kses() for wp_trigger_error(). Kses requires an associative array of allowed HTML. See #57686. Follow-up to [56707]. Props thelovekesh, westonruter. Fixes #61318. Built from https://develop.svn.wordpress.org/trunk@58361 git-svn-id: http://core.svn.wordpress.org/trunk@57810 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 10 +++++----- wp-includes/version.php | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index fad26e1192..8a955400e9 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -6068,11 +6068,11 @@ function wp_trigger_error( $function_name, $message, $error_level = E_USER_NOTIC $message = wp_kses( $message, array( - 'a' => array( 'href' ), - 'br', - 'code', - 'em', - 'strong', + 'a' => array( 'href' => true ), + 'br' => array(), + 'code' => array(), + 'em' => array(), + 'strong' => array(), ), array( 'http', 'https' ) ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 7683b19238..ac97e80b06 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.6-beta1-58360'; +$wp_version = '6.6-beta1-58361'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.