WordPress / WordPress/pattern-directory

Block theme: Applying "all" filter and searching for term resets to "curated".

Open
#678 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Component] Theme
Dominant language
PHP
Stars
134
Forks
46
Avg merge
9h 4m
Merged PRs (30d)
19

Description

Describe the bug
When I update my all/curated/community filter to "all" and search, it resets to "curated".

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://wordpress.org/patterns/?s=section&pattern-categories=gallery
  2. Change filter from curated to "all"
  3. Search for "section"
  4. Notice that "all" is replaced with "curated".

Expected behavior
I would expect the filter option to not change.

Screenshot
Screen Capture on 2024-04-18 at 09-59-39 (1)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue at https://wordpress.org/patterns/?s=section&pattern-categories=gallery: select “all,” then search for “section.” Trace the filter and search state handling to find where “all” becomes “curated”; done means the selected “all” filter remains unchanged after searching.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.