Merge pull request #11614 from swoboda/master

ZIP Code formatting for Poland
This commit is contained in:
Mike Jolley 2016-08-03 16:08:24 +01:00 committed by GitHub
commit 30690a910e
1 changed files with 3 additions and 0 deletions

View File

@ -668,6 +668,9 @@ function wc_format_postcode( $postcode, $country ) {
case 'JP' :
$postcode = trim( substr_replace( $postcode, '-', 3, 0 ) );
break;
case 'PL' :
$postcode = trim( substr_replace( $postcode, '-', -3, 0 ) );
break;
case 'PT' :
$postcode = trim( substr_replace( $postcode, '-', 4, 0 ) );
break;