🐞 fix: Add missing variables to function call

This commit is contained in:
Keith Solomon
2025-12-10 10:45:42 -06:00
parent 6ba917bf9b
commit 4ff839b10a
+1 -1
View File
@@ -103,7 +103,7 @@ $isTodayInCurrentMonth = ( $curMonth === $todayMonth && $curYear === $todayYear
<?php
// Modify the day cell output to add highlight for today.
$originalEchoDayCell = function ( $day, $firstDay, $eventsByDay ) use ( $isTodayInCurrentMonth, $todayDay ) {
$originalEchoDayCell = function ( $day, $firstDay, $eventsByDay ) use ( $isTodayInCurrentMonth, $todayDay, $todayMonth, $todayYear, $curMonth, $curYear ) {
$cellClass = '';
if ( $day === $todayDay && $curMonth === $todayMonth && $curYear === $todayYear ) {
$cellClass = 'today-cell';