Skip to content

Commit b3713e7

Browse files
authored
Merge pull request #2530 from WordPress/add/rest-sanitize-boolean
Add `rest_sanitize_boolean()` to unslashing sanitizing functions
2 parents 2004209 + 538196c commit b3713e7

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)