Skip to content

Commit

Permalink
Improve if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
girishpanchal30 committed Jul 3, 2024
1 parent 0b68925 commit fce71ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ function ppom_check_validation( $product_id, $post_data, $passed = true ) {

$passed = apply_filters( 'ppom_before_fields_validation', $passed, $field, $post_data, $product_id );

if ( $passed && ! isset( $field['required'] ) || 'on' !== $field['required'] ) {
if ( $passed && ( ! isset( $field['required'] ) || 'on' !== $field['required'] ) ) {
continue;
}

Expand Down

0 comments on commit fce71ac

Please sign in to comment.