Skip to content

Commit 538196c

Browse files
committed
Add rest_sanitize_boolean() to unslashing sanitizing functions
1 parent 2004209 commit 538196c

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

WordPress/Helpers/SanitizationHelperTrait.php

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -137,15 +137,16 @@ trait SanitizationHelperTrait {
137137
* @var array<string, bool>
138138
*/
139139
private $unslashingSanitizingFunctions = array(
140-
'absint' => true,
141-
'boolval' => true,
142-
'count' => true,
143-
'doubleval' => true,
144-
'floatval' => true,
145-
'intval' => true,
146-
'sanitize_key' => true,
147-
'sanitize_locale_name' => true,
148-
'sizeof' => true,
140+
'absint' => true,
141+
'boolval' => true,
142+
'count' => true,
143+
'doubleval' => true,
144+
'floatval' => true,
145+
'intval' => true,
146+
'rest_sanitize_boolean' => true,
147+
'sanitize_key' => true,
148+
'sanitize_locale_name' => true,
149+
'sizeof' => true,
149150
);
150151

151152
/**

0 commit comments

Comments
 (0)