Skip to content

Commit

Permalink
Merge PR #198
Browse files Browse the repository at this point in the history
  • Loading branch information
sal4sup committed Dec 1, 2024
2 parents 965f3cc + f1bf296 commit 33f9f5a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Rest_API/Base_Info.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 33f9f5a

Please sign in to comment.