Fixed undefined variable on WC_Shipping_Zones::get_zone_by
This commit is contained in:
parent
0ca68ff51e
commit
cae02bee36
|
@ -55,6 +55,8 @@ class WC_Shipping_Zones {
|
|||
* @return WC_Shipping_Zone|bool
|
||||
*/
|
||||
public static function get_zone_by( $by = 'zone_id', $id = 0 ) {
|
||||
$zone_id = false;
|
||||
|
||||
switch ( $by ) {
|
||||
case 'zone_id' :
|
||||
$zone_id = $id;
|
||||
|
|
Loading…
Reference in New Issue