From 0771f56df25aeada96a47730c933fd74f658af7e Mon Sep 17 00:00:00 2001 From: yuriinalivaiko Date: Thu, 8 Dec 2022 14:49:28 +0200 Subject: [PATCH] - added data type verification for the 'url' field --- includes/core/class-form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/core/class-form.php b/includes/core/class-form.php index eeab460b..99476051 100644 --- a/includes/core/class-form.php +++ b/includes/core/class-form.php @@ -653,7 +653,7 @@ if ( ! class_exists( 'um\core\Form' ) ) { case 'url': $f = UM()->builtin()->get_a_field( $k ); - if ( array_key_exists( 'match', $f ) && array_key_exists( 'advanced', $f ) && 'social' === $f['advanced'] ) { + if ( is_array( $f ) && array_key_exists( 'match', $f ) && array_key_exists( 'advanced', $f ) && 'social' === $f['advanced'] ) { $v = sanitize_text_field( $form[ $k ] ); // Make a proper social link