From 2bb5e2871e98a450206ef594d7aaf0a0c38d9e3f Mon Sep 17 00:00:00 2001 From: Daniel Iser Date: Mon, 5 Aug 2024 02:57:41 -0400 Subject: [PATCH] Fix weird errors on save --- inc/settings.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/settings.php b/inc/settings.php index d33a6b1..19245d1 100644 --- a/inc/settings.php +++ b/inc/settings.php @@ -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 );