From 37672cd7d19eee72bdd73a0c0da8b3cc2d556a8e Mon Sep 17 00:00:00 2001 From: Scott Kingsley Clark Date: Fri, 4 Oct 2024 12:07:48 -0500 Subject: [PATCH] Fix php warnings with methods that expect string when template code is null --- components/Templates/includes/functions-view_template.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/components/Templates/includes/functions-view_template.php b/components/Templates/includes/functions-view_template.php index d2310b6181..968684bb14 100644 --- a/components/Templates/includes/functions-view_template.php +++ b/components/Templates/includes/functions-view_template.php @@ -681,14 +681,15 @@ function frontier_pseudo_magic_tags( $template, $data, $pod = null, $skip_unknow /** * processes template code within an each command from the base template * - * @param array $code The code to filter. - * @param string $template The template to be processed. - * @param Pods $pod The Pods object. + * @param string|null $code The code to filter. + * @param string $template The template to be processed. + * @param Pods $pod The Pods object. * * @return null * @since 2.4.0 */ function frontier_prefilter_template( $code, $template, $pod ) { + $code = (string) $code; global $frontier_once_tags;