Fixed undefined variable on WC_Shipping_Zones::get_zone_by

This commit is contained in:
Claudio Sanches 2017-12-06 19:07:00 -02:00
parent 0ca68ff51e
commit cae02bee36
1 changed files with 2 additions and 0 deletions

View File

@ -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;