Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/features/class-query-block-context.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,13 @@ public function filter_query_context( $context, $parsed_block, $parent_block ):
}
}

return false;
/**
* Filter to determine if deduplication is enabled for the current block.
*
* @param bool $enabled Whether deduplication is enabled. Default is false.
* @param array{"attrs": array<string, mixed>} $parsed_block The parsed block attributes.
*/
return apply_filters( 'wp_curate_deduplication_enabled', false, $parsed_block );
},
// Exclude posts that have already been used in this request.
test: new Comparison( [ 'compared' => true ] ),
Expand Down