From 941c23cd96745eeae7a7bebb69042ee791f5454c Mon Sep 17 00:00:00 2001 From: Mike Letellier Date: Fri, 25 Oct 2024 11:12:20 -0300 Subject: [PATCH] Check for null in sanitize_embedded_shortcodes --- classes/helpers/FrmFieldsHelper.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/classes/helpers/FrmFieldsHelper.php b/classes/helpers/FrmFieldsHelper.php index 6b97164e83..3fdb962a5c 100644 --- a/classes/helpers/FrmFieldsHelper.php +++ b/classes/helpers/FrmFieldsHelper.php @@ -943,10 +943,15 @@ private static function atts_sanitize_url( $replace_with ) { * * @since 3.01.02 * - * @param array $atts Includes entry object. - * @param string $value + * @param array $atts Includes entry object. + * @param string|null $value + * @return void */ public static function sanitize_embedded_shortcodes( $atts, &$value ) { + if ( is_null( $value ) ) { + return; + } + $atts['value'] = $value; $should_sanitize = apply_filters( 'frm_sanitize_shortcodes', true, $atts ); if ( $should_sanitize ) {