This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Ensure that month view 'view all X events' on this day links are functional. | |
* | |
* This is a temporary workaround for a bug in Events Calendar PRO 4.4.20.1. | |
*/ | |
add_filter( 'tribe_get_day_link', function( $url, $date ) { | |
// Intervention is only needed following navigation by ajax | |
if ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) { | |
return $url; |