Allow string reuse by moving brackets outside of string.
This commit is contained in:
parent
d765ca9ec4
commit
0e589f641e
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue