Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
include $post_id in update increments filter, see #74
  • Loading branch information
billerickson committed May 13, 2019
1 parent 9f487a6 commit 552f005
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-shared-counts-core.php
Expand Up @@ -359,7 +359,7 @@ public function needs_updating( $last_updated = false, $post_date, $post_id ) {
'increment' => strtotime( '-5 days' ),
],
];
$update_increments = apply_filters( 'shared_counts_update_increments', $update_increments );
$update_increments = apply_filters( 'shared_counts_update_increments', $update_increments, $post_id );

$increment = false;
foreach ( $update_increments as $i ) {
Expand Down

0 comments on commit 552f005

Please sign in to comment.