diff --git a/WordPress/Helpers/SanitizationHelperTrait.php b/WordPress/Helpers/SanitizationHelperTrait.php index 64765dc95..31661d169 100644 --- a/WordPress/Helpers/SanitizationHelperTrait.php +++ b/WordPress/Helpers/SanitizationHelperTrait.php @@ -137,15 +137,16 @@ trait SanitizationHelperTrait { * @var array */ private $unslashingSanitizingFunctions = array( - 'absint' => true, - 'boolval' => true, - 'count' => true, - 'doubleval' => true, - 'floatval' => true, - 'intval' => true, - 'sanitize_key' => true, - 'sanitize_locale_name' => true, - 'sizeof' => true, + 'absint' => true, + 'boolval' => true, + 'count' => true, + 'doubleval' => true, + 'floatval' => true, + 'intval' => true, + 'rest_sanitize_boolean' => true, + 'sanitize_key' => true, + 'sanitize_locale_name' => true, + 'sizeof' => true, ); /**