Skip to content

Commit

Permalink
Pass time frame directly into navigation builder
Browse files Browse the repository at this point in the history
Otherwise, it will be inherited from the GET request, which can result in an undesired change when navigating two calendars on the same page, which is a case where the GET request may be from navigating a different calendar.
  • Loading branch information
joedolson committed Nov 26, 2024
1 parent c4b03d7 commit 50ff483
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/my-calendar-navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ function mc_nav( $date, $format, $time, $show_months, $id, $site = false ) {
'month' => $prev['month'],
'dy' => $prev['day'],
'cid' => $id,
'time' => $time,
),
array()
);
Expand All @@ -313,6 +314,7 @@ function mc_nav( $date, $format, $time, $show_months, $id, $site = false ) {
'month' => $next['month'],
'dy' => $next['day'],
'cid' => $id,
'time' => $time,
),
array()
);
Expand Down

0 comments on commit 50ff483

Please sign in to comment.