Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
corsacca committed Dec 15, 2022
2 parents fc1a365 + 0ba8ea4 commit a37cd92
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dt-posts/dt-posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,9 @@ public static function create_post( string $post_type, array $fields, bool $sile
unset( $fields[ $field_key ] );
}
if ( $field_type === 'number' && (
isset( $post_settings['fields'][$field_key]['min_option'] ) &&
isset( $post_settings['fields'][$field_key]['min_option'] ) && ( !empty( $post_settings['fields'][$field_key]['min_option'] ) || $post_settings['fields'][$field_key]['min_option'] === 0 ) &&
$field_value < $post_settings['fields'][$field_key]['min_option'] ||
isset( $post_settings['fields'][$field_key]['max_option'] ) &&
isset( $post_settings['fields'][$field_key]['max_option'] ) && ( !empty( $post_settings['fields'][$field_key]['max_option'] ) || $post_settings['fields'][$field_key]['max_option'] === 0 ) &&
$field_value > $post_settings['fields'][$field_key]['max_option']
)
) {
Expand Down Expand Up @@ -509,9 +509,9 @@ public static function update_post( string $post_type, int $post_id, array $fiel
}

if ( $field_type === 'number' && (
isset( $post_settings['fields'][$field_key]['min_option'] ) &&
isset( $post_settings['fields'][$field_key]['min_option'] ) && ( !empty( $post_settings['fields'][$field_key]['min_option'] ) || $post_settings['fields'][$field_key]['min_option'] === 0 ) &&
$field_value < $post_settings['fields'][$field_key]['min_option'] ||
isset( $post_settings['fields'][$field_key]['max_option'] ) &&
isset( $post_settings['fields'][$field_key]['max_option'] ) && ( !empty( $post_settings['fields'][$field_key]['max_option'] ) || $post_settings['fields'][$field_key]['max_option'] === 0 ) &&
$field_value > $post_settings['fields'][$field_key]['max_option']
)
) {
Expand Down

0 comments on commit a37cd92

Please sign in to comment.