🐞 fix: Add missing variables to function call
This commit is contained in:
@@ -103,7 +103,7 @@ $isTodayInCurrentMonth = ( $curMonth === $todayMonth && $curYear === $todayYear
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
// Modify the day cell output to add highlight for today.
|
// 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 = '';
|
$cellClass = '';
|
||||||
if ( $day === $todayDay && $curMonth === $todayMonth && $curYear === $todayYear ) {
|
if ( $day === $todayDay && $curMonth === $todayMonth && $curYear === $todayYear ) {
|
||||||
$cellClass = 'today-cell';
|
$cellClass = 'today-cell';
|
||||||
|
|||||||
Reference in New Issue
Block a user