Skip to content

Commit bae82ca

Browse files
committed
add missing second parameter for hook facetwp_facet_dropdown_show_counts
1 parent b88faeb commit bae82ca

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

classes/monthly.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function render( $params ) {
6767

6868
$display_value = date_i18n( 'F Y', strtotime( $result['facet_display_value'] ) );
6969
// Determine whether to show counts
70-
$show_counts = apply_filters( 'facetwp_facet_dropdown_show_counts', true );
70+
$show_counts = apply_filters( 'facetwp_facet_dropdown_show_counts', true, $params );
7171
if ( $show_counts ) {
7272
$display_value .= sprintf( ' (%s)', $result['counter'] );
7373
}

facetwp-monthly.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Plugin Name: FacetWP - Monthly
44
Plugin URI: https://github.com/petitphp/facetwp-monthly
55
Description: Filter your posts by monthly archive
6-
Version: 2.0.0
6+
Version: 2.0.1
77
Author: Clément Boirie
88
Author URI: https://github.com/petitphp
99
*/
@@ -13,7 +13,7 @@
1313
die( '-1' );
1414
}
1515

16-
define( 'FWP_MTLY_VER', '2.0.0' );
16+
define( 'FWP_MTLY_VER', '2.0.1' );
1717
define( 'FWP_MTLY_URL', plugin_dir_url( __FILE__ ) );
1818
define( 'FWP_MTLY_DIR', plugin_dir_path( __FILE__ ) );
1919

0 commit comments

Comments
 (0)