Allow string reuse by moving brackets outside of string.

This commit is contained in:
Mike Jolley 2018-06-27 10:31:41 +01:00
parent d765ca9ec4
commit 0e589f641e
1 changed files with 2 additions and 2 deletions

View File

@ -616,10 +616,10 @@ class WC_Countries {
* @return array
*/
public function get_default_address_fields() {
$address_2_placeholder = __( 'Apartment, suite, unit etc.', 'woocommerce' );
if ( 'optional' === get_option( 'woocommerce_checkout_address_2_field', 'optional' ) ) {
$address_2_placeholder .= ' ' . __( '(optional)', 'woocommerce' );
$address_2_placeholder .= ' (' . __( 'optional', 'woocommerce' ) . ')';
}
$fields = array(