Skip to content

fix: apply community cloud filters and pagination on the featured view - #404

Closed
imantsk wants to merge 2 commits into
core-betafrom
fix/community-filters
Closed

fix: apply community cloud filters and pagination on the featured view#404
imantsk wants to merge 2 commits into
core-betafrom
fix/community-filters

Conversation

@imantsk

@imantsk imantsk commented Jun 11, 2026

Copy link
Copy Markdown
Member

The doSearch callback early-returned whenever the search query was empty — and the featured view is exactly the empty-query state. Every filter dropdown change and pagination click on the initial Featured Snippets page was silently dropped: no request, no state change. With a search term present the same controls worked, which is why the bug only showed on the default view.

All other layers (WP REST cloud/snippets/featured, Cloud_API::get_featured_snippets, the cloud /public/featured endpoint) already accept and honour category/type/status — only the front-end guard blocked them. makeSearchRequest already routes an empty query to the featured endpoint, so removing the guard restores filters, pagination, and empty-box submit on the featured view.

Verified in the browser against the live cloud API: category/type/status filters narrow featured results (stacked filters included), featured pagination works, and the search-query path is unaffected.

@imantsk imantsk closed this Jun 11, 2026
@imantsk
imantsk deleted the fix/community-filters branch June 11, 2026 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant