From 38470330ae575d3a3f7ba566e38f3020434ebbbc Mon Sep 17 00:00:00 2001 From: Joe Dolson Date: Tue, 31 Oct 2023 15:44:11 -0500 Subject: [PATCH] Loaded template not appended to output HTML. --- src/my-calendar-widgets.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/my-calendar-widgets.php b/src/my-calendar-widgets.php index 8eb8c4719..6983fb925 100644 --- a/src/my-calendar-widgets.php +++ b/src/my-calendar-widgets.php @@ -581,6 +581,8 @@ function mc_produce_upcoming_events( $events, $template, $type = 'list', $order $details = mc_load_template( 'event/upcoming', $data ); if ( ! $details ) { $html .= mc_format_upcoming_event( $out, $template, $type ); + } else { + $html .= $details; } }