Skip to content

Commit 208516e

Browse files
committed
EscapingFunctionsTrait: add esc_xml() to the list of escaping functions
This function was introduced in WP 5.5. As it's been around for about three years now, I'm not going to special case it with a version check. Ref: https://core.trac.wordpress.org/ticket/50117 Fixes 1937
1 parent ca2da67 commit 208516e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

WordPress/Helpers/EscapingFunctionsTrait.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ trait EscapingFunctionsTrait {
7171
'esc_textarea' => true,
7272
'esc_url_raw' => true,
7373
'esc_url' => true,
74+
'esc_xml' => true,
7475
'filter_input' => true,
7576
'filter_var' => true,
7677
'floatval' => true,

0 commit comments

Comments
 (0)