We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 828e486 commit c4cb50aCopy full SHA for c4cb50a
src/my-calendar-output.php
@@ -1844,10 +1844,9 @@ function my_calendar( $args ) {
1844
$body .= mc_get_event( $mc_id, 'html' );
1845
}
1846
} else {
1847
- $end_of_week = ( 1 === (int) $start_of_week ) ? 7 : 6;
1848
- $start_of_week = ( $show_weekends ) ? $start_of_week : 1;
1849
- $date = mc_get_current_date( $main_class, $cid, $params );
1850
- $current = $date['current_date'];
+ $end_of_week = ( 1 === (int) $start_of_week ) ? 7 : 6;
+ $date = mc_get_current_date( $main_class, $cid, $params );
+ $current = $date['current_date'];
1851
1852
if ( is_numeric( $months ) && $months <= 12 && $months > 0 ) {
1853
$show_months = absint( $months );
0 commit comments