Merge pull request #22096 from woocommerce/fix/formatted_address_upper

Use wc_strtoupper on formatted address
This commit is contained in:
Mike Jolley 2019-01-04 13:04:08 +00:00 committed by GitHub
commit 502a25a2fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 11 deletions

View File

@ -572,17 +572,17 @@ class WC_Countries {
'{state}' => $full_state,
'{postcode}' => $args['postcode'],
'{country}' => $full_country,
'{first_name_upper}' => strtoupper( $args['first_name'] ),
'{last_name_upper}' => strtoupper( $args['last_name'] ),
'{name_upper}' => strtoupper( $args['first_name'] . ' ' . $args['last_name'] ),
'{company_upper}' => strtoupper( $args['company'] ),
'{address_1_upper}' => strtoupper( $args['address_1'] ),
'{address_2_upper}' => strtoupper( $args['address_2'] ),
'{city_upper}' => strtoupper( $args['city'] ),
'{state_upper}' => strtoupper( $full_state ),
'{state_code}' => strtoupper( $state ),
'{postcode_upper}' => strtoupper( $args['postcode'] ),
'{country_upper}' => strtoupper( $full_country ),
'{first_name_upper}' => wc_strtoupper( $args['first_name'] ),
'{last_name_upper}' => wc_strtoupper( $args['last_name'] ),
'{name_upper}' => wc_strtoupper( $args['first_name'] . ' ' . $args['last_name'] ),
'{company_upper}' => wc_strtoupper( $args['company'] ),
'{address_1_upper}' => wc_strtoupper( $args['address_1'] ),
'{address_2_upper}' => wc_strtoupper( $args['address_2'] ),
'{city_upper}' => wc_strtoupper( $args['city'] ),
'{state_upper}' => wc_strtoupper( $full_state ),
'{state_code}' => wc_strtoupper( $state ),
'{postcode_upper}' => wc_strtoupper( $args['postcode'] ),
'{country_upper}' => wc_strtoupper( $full_country ),
),
$args
)