Skip to content

Commit

Permalink
Fix php warnings with methods that expect string when template code i…
Browse files Browse the repository at this point in the history
…s null
  • Loading branch information
sc0ttkclark committed Nov 17, 2024
1 parent 0f2fe47 commit 37672cd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions components/Templates/includes/functions-view_template.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 37672cd

Please sign in to comment.