Skip to content

Commit ed8c30d

Browse files
committed
EscapingFunctionsTrait: add wp_timezone_choice() to the list of auto-escaped functions
This function was introduced in WP 2.9.0. I've looked the code of the function over and agree it can be added to the auto-escaped functions list. Ref: https://developer.wordpress.org/reference/functions/wp_timezone_choice/ Fixes 1904
1 parent 208516e commit ed8c30d

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
@@ -164,6 +164,7 @@ trait EscapingFunctionsTrait {
164164
'wp_nav_menu' => true,
165165
'wp_register' => true,
166166
'wp_tag_cloud' => true,
167+
'wp_timezone_choice' => true,
167168
'wp_title' => true,
168169
);
169170

0 commit comments

Comments
 (0)