From 538196cf766ec97e4267ca81b3529b9748500d04 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Mon, 9 Jun 2025 18:23:45 -0700 Subject: [PATCH] Add rest_sanitize_boolean() to unslashing sanitizing functions --- WordPress/Helpers/SanitizationHelperTrait.php | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/WordPress/Helpers/SanitizationHelperTrait.php b/WordPress/Helpers/SanitizationHelperTrait.php index 64765dc953..31661d169e 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, ); /**