From f1bf296398e13850a9c5e730fb115208673612ee Mon Sep 17 00:00:00 2001 From: OlfatProgressus Date: Mon, 25 Nov 2024 16:52:12 +0200 Subject: [PATCH] remove length sanitization from the request --- src/Rest_API/Base_Info.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Rest_API/Base_Info.php b/src/Rest_API/Base_Info.php index acb8e5aa..bb7b3af1 100644 --- a/src/Rest_API/Base_Info.php +++ b/src/Rest_API/Base_Info.php @@ -179,9 +179,7 @@ protected function get_receiver_info_schema() { 'postcode' => array( 'error' => __( 'Shipping "Postcode" is empty!', 'postnl-for-woocommerce' ), 'sanitize' => function ( $value ) use ( $self ) { - $value = str_replace( ' ', '', $value ); - - return $self->string_length_sanitization( $value, 7 ); + return $value = str_replace( ' ', '', $value ); }, ), 'state' => array(