This commit is contained in:
Mike Jolley 2012-02-09 17:45:54 +00:00
parent 0a816a25cb
commit bf7d14f15f
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ class WC_Checkout {
switch ($key) :
case "billing_postcode" :
case "shipping_postcode" :
$this->posted[$key] = strtolower(str_replace(' ', '', $this->posted[$key]));
$this->posted[$key] = strtoupper(str_replace(' ', '', $this->posted[$key]));
if (!$validation->is_postcode( $this->posted[$key], $_POST['billing_country'] )) : $woocommerce->add_error( '<strong>' . $field['label'] . '</strong> ' . __('(billing) is not a valid postcode/ZIP.', 'woocommerce') );
else :