From 5e18d824368e980d518765d7c7494310725e4328 Mon Sep 17 00:00:00 2001 From: Joe Dolson Date: Sun, 19 Jan 2025 16:00:39 -0600 Subject: [PATCH] Hell. Removed the opposite string. --- src/my-calendar-output.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/my-calendar-output.php b/src/my-calendar-output.php index 8a7641a9..8a276e93 100644 --- a/src/my-calendar-output.php +++ b/src/my-calendar-output.php @@ -1881,7 +1881,7 @@ function my_calendar( $args ) { * * @return {string} */ - $to = mc_date( 'Y-m-d', strtotime( $from . ' + 13 days' ) ); + $to = apply_filters( 'mc_to_date', $dates['to'], $dates['from'] ); $from = ( 'day' === $params['time'] ) ? mc_date( 'Y-m-d', $current, false ) : $from; $to = ( 'day' === $params['time'] ) ? mc_date( 'Y-m-d', $current, false ) : $to; $query = array(