Skip to content

Commit

Permalink
fix: Empty address save for vendor issue fix. (#2052)
Browse files Browse the repository at this point in the history
  • Loading branch information
aihimel authored Nov 21, 2023
1 parent 0f7f23f commit 4809084
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions includes/Vendor/Vendor.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ public function popluate_store_data() {
$shop_info = get_user_meta( $this->id, 'dokan_profile_settings', true );
$shop_info = is_array( $shop_info ) ? $shop_info : array();
$shop_info = wp_parse_args( $shop_info, $defaults );
$shop_info['address'] = empty( $shop_info['address'] ) ? []: $shop_info['address']; // Empty vendor address save issue fix

$this->shop_data = apply_filters( 'dokan_vendor_shop_data', $shop_info, $this );
}
Expand Down

0 comments on commit 4809084

Please sign in to comment.