Set a blank default name when displaying the shipping zone form, so the placeholder will be used instead.

This commit is contained in:
Justin Shreve 2016-11-22 10:52:58 -08:00
parent f256b768bb
commit 90e93e1eba
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ class WC_Settings_Shipping extends WC_Settings_Page {
protected function zone_methods_screen( $zone_id ) {
if ( 'new' === $zone_id ) {
$zone = new WC_Shipping_Zone();
$zone->set_zone_name( __( 'New zone', 'woocommerce' ) );
$zone->set_zone_name( '' );
} else {
$zone = WC_Shipping_Zones::get_zone( absint( $zone_id ) );
}