From eb3c3e308b9edb88e2934b1cd1659c1c167d9bdc Mon Sep 17 00:00:00 2001 From: Alex Mills Date: Thu, 7 Dec 2017 16:44:31 -0800 Subject: [PATCH] Search: Fix the remove month+year filter link. (#8327) When filtering by month+year, such as "December 2017", the remove URL for that filter cleared the month and day, not the month and year. --- modules/search/class.jetpack-search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/search/class.jetpack-search.php b/modules/search/class.jetpack-search.php index 9733d2a27812c..a826966c25ba5 100644 --- a/modules/search/class.jetpack-search.php +++ b/modules/search/class.jetpack-search.php @@ -1250,7 +1250,7 @@ public function get_filters( WP_Query $query = null ) { ! empty( $current_month ) && (int) $current_month === $month ) { $active = true; - $remove_url = remove_query_arg( array( 'monthnum', 'day' ) ); + $remove_url = remove_query_arg( array( 'year', 'monthnum' ) ); } break;