Skip to content

Commit 3102f78

Browse files
committed
Fixed wrong params on remove_filter
1 parent 20c727e commit 3102f78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Commands/Composites.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function import($args, $assocArgs)
5252
// Disable on save hook to prevent call to content hub on import
5353
remove_action( 'save_post', [WpComposite::class, 'on_save'], 10, 2 );
5454
// Disable on save hook in wp bonnier cache, to avoid triggering cxense crawl on import
55-
remove_action( 'save_post', [Post::class, 'update_post'], 10, 2 );
55+
remove_action( 'save_post', [Post::class, 'update_post'], 10, 1 );
5656

5757
if($id = $assocArgs['id'] ?? null) {
5858
$this->import_composite(CompositeRepository::find_by_id($id));

0 commit comments

Comments
 (0)