[wp-meta] [Making WordPress.org] #7013: Theme directory search handling breaks global search

Making WordPress.org noreply at wordpress.org
Thu May 25 15:58:47 UTC 2023

#7013: Theme directory search handling breaks global search
 Reporter:  ryelle           |      Owner:  (none)
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:
Component:  Theme Directory  |   Keywords:
 The global search bar is broken on Theme Directory, nothing happens when
 you try to search.

 To reproduce:

 1. Visit https://wordpress.org/themes/ or a single theme like
 2. Click the search icon in the global header (not the theme search), the
 search opens
 3. Type any search terms
 4. Hit enter or click the search icon button
 5. 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.

Ticket URL: <https://meta.trac.wordpress.org/ticket/7013>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org

More information about the wp-meta mailing list