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
This commit is contained in:
parent
f6e876199a
commit
7529944c8d
|
@ -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' )
|
||||
);
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue