Skip to content

Commit

Permalink
Fix weird errors on save
Browse files Browse the repository at this point in the history
  • Loading branch information
danieliser committed Aug 5, 2024
1 parent c808b07 commit 2bb5e28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,12 @@ function sanitize_watermark_repeater_settings( $value, $key = null ) {
return $value;
}

if ( is_array( $value ) && ! empty( $value ) && is_array( $value[0] ) && isset( $value[0]['type'] ) ) {
if ( is_array( $value ) && ! empty( $value ) && isset( $value[0] ) && is_array( $value[0] ) && isset( $value[0]['type'] ) ) {
// This is already processed value, must be sanitizing before rendering ?
return $value;
}

$value = apply_filters( 'edd_settings_sanitize_watermark_repeater', $value, $key );
// $value = apply_filters( 'edd_settings_sanitize_watermark_repeater', $value, $key );

$value = remap_watermark_repeater_values( $value );

Expand Down

0 comments on commit 2bb5e28

Please sign in to comment.