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
|
* @return WC_Shipping_Zone|bool
|
||||||
*/
|
*/
|
||||||
public static function get_zone_by( $by = 'zone_id', $id = 0 ) {
|
public static function get_zone_by( $by = 'zone_id', $id = 0 ) {
|
||||||
|
$zone_id = false;
|
||||||
|
|
||||||
switch ( $by ) {
|
switch ( $by ) {
|
||||||
case 'zone_id' :
|
case 'zone_id' :
|
||||||
$zone_id = $id;
|
$zone_id = $id;
|
||||||
|
|
Loading…
Reference in New Issue