Opened 20 months ago
Closed 20 months ago
#7013 closed defect (bug) (fixed)
Theme directory search handling breaks global search
Reported by: | ryelle | Owned by: | coffee2code |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Theme Directory | Keywords: | |
Cc: |
Description
The global search bar is broken on Theme Directory, nothing happens when you try to search.
To reproduce:
- Visit https://wordpress.org/themes/ or a single theme like https://wordpress.org/themes/twentytwentythree/
- Click the search icon in the global header (not the theme search), the search opens
- Type any search terms
- Hit enter or click the search icon button
- Nothing happens
It should direct you to the global search page, wordpress.org/search, with your results. Instead, there's a JS error that TypeError: a.closest(...) is null
I think the theme's JS handling is accidentally grabbing the global search, but the different markup causes the JS error that prevents the form from submitting.
Props to @nielslange for the initial report.
Change History (3)
Note: See
TracTickets for help on using
tickets.
I know the cause of this. Fix incoming.