Skip to content

Commit

Permalink
check fields with ??
Browse files Browse the repository at this point in the history
  • Loading branch information
osmansufy committed Nov 20, 2024
1 parent 9cf6a8a commit e87a86b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/Vendor/SetupWizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -479,8 +479,8 @@ public function dokan_setup_store_save() {
$dokan_settings['location'] = isset( $_POST['location'] ) ? sanitize_text_field( wp_unslash( $_POST['location'] ) ) : '';
$dokan_settings['find_address'] = isset( $_POST['find_address'] ) ? sanitize_text_field( wp_unslash( $_POST['find_address'] ) ) : '';
$dokan_settings['show_email'] = isset( $_POST['show_email'] ) ? 'yes' : 'no';
$country = $dokan_settings['address']['country'];
$state = $dokan_settings['address']['state'];
$country = $dokan_settings['address']['country'] ?? '';
$state = $dokan_settings['address']['state'] ?? '';
$country_has_states = isset( $states[ $country ] ) && count( $states[ $country ] ) > 0;
$state_is_empty = empty( $state ); // Validating fileds.
$is_valid_form = true;
Expand Down

0 comments on commit e87a86b

Please sign in to comment.