From 99adc251848c46f66a71df1aaeeed1b38d4b0326 Mon Sep 17 00:00:00 2001 From: Sainath Poojary Date: Sat, 28 Nov 2026 00:53:00 +0530 Subject: [PATCH] Themes: Allow repeating the same theme search after the search field is cleared. --- src/js/_enqueues/wp/theme.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/js/_enqueues/wp/theme.js b/src/js/_enqueues/wp/theme.js index dabd64cc6c6ba..9e290ee49fe75 100644 --- a/src/js/_enqueues/wp/theme.js +++ b/src/js/_enqueues/wp/theme.js @@ -2006,6 +2006,10 @@ themes.view.Installer = themes.view.Appearance.extend({ clearSearch: function() { $( '#wp-filter-search-input').val( '' ); + + if ( this.SearchView ) { + this.SearchView.terms = ''; + } } });