Skip to content

Commit

Permalink
Search: Fix the remove month+year filter link. (#8327)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Viper007Bond authored Dec 8, 2017
1 parent e0783c8 commit eb3c3e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/search/class.jetpack-search.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit eb3c3e3

Please sign in to comment.