[wp-trac] [WordPress Trac] #61578: Issue with search functionality in installed themes section
WordPress Trac
noreply at wordpress.org
Thu Aug 15 16:16:32 UTC 2024
#61578: Issue with search functionality in installed themes section
-------------------------------------+-------------------------------------
Reporter: nithi22 | Owner: joedolson
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 6.6.2
Component: Themes | Version: 6.6
Severity: normal | Resolution:
Keywords: has-patch has-testing- | Focuses: accessibility,
info | administration
-------------------------------------+-------------------------------------
Comment (by hellofromTonya):
== Test Report for Add Themes
Patch tested: https://github.com/WordPress/wordpress-develop/pull/6976
=== Steps to Reproduce or Test
1. Navigate to Appearance > Themes > Add Theme.
2. In the search box, enter a valid theme's name or part of a name, e.g.
"News".
* Expected: Page should refresh with a list of themes with "News" in
their name.
3. In the search box, press return or enter key. 🐞 Bug occurs.
* Expected: Nothing should happen.
4. In the search box, enter an invalid theme name, e.g. "sometheme".
* Expected: Page should refresh with no themes listed and a "No themes
found. Try a different search." message in the search results.
5. In the search box, press return or enter key. 🐞 Bug occurs.
* Expected: Nothing should happen.
=== Expected Results
When testing if the patch resolves the issue:
* Step 2. In the search box, enter a valid theme's name or part of a name,
e.g. "News".
* ✅ Expected: Page should refresh with a list of themes with "News" in
their name.
* Step 3. In the search box, press return or enter key.
* ✅ Expected: Nothing should happen.
* Step 4: In the search box, enter an invalid theme name, e.g.
"sometheme".
* ✅ Expected: Page should refresh with no themes listed and a "No
themes found. Try a different search." message in the search results.
* Step 5. In the search box, press return or enter key.
* ✅ Expected: Nothing should happen.
When reproducing a bug:
* Step 3. In the search box, press return or enter key. 🐞 Bug occurs.
* ❌ page refreshes to `/wp-admin/theme-install.php?browse=popular`,
search box is cleared, and a list of the popular themes is shown in the
search results.
* Step 5. In the search box, press return or enter key. 🐞 Bug occurs.
* ❌ page refreshes to `/wp-admin/theme-install.php?browse=popular`,
search box is cleared, and a list of the popular themes is shown in the
search results.
=== Environment
- OS: macOS
- Web Server: Nginx (using Local)
- PHP: 8.3.8
- WordPress: 6.5.5 and 6.6.1
- Browser: Firefox 129.0.1
- Theme: Twenty Twenty-Four
- Active Plugins: None
==== Actual Results
===== When reproducing a bug/defect:
Can reproduce the issues of pressing enter/return key as shown in
[attachment:"AddThemeSearch-6.6.1.gif"]:
* Step 3. In the search box, press return or enter key. 🐞 Bug occurs.
* ❌ page refreshes to `/wp-admin/theme-install.php?browse=popular`,
search box is cleared, and a list of the popular themes is shown in the
search results.
* Step 5. In the search box, press return or enter key. 🐞 Bug occurs.
* ❌ page refreshes to `/wp-admin/theme-install.php?browse=popular`,
search box is cleared, and a list of the popular themes is shown in the
search results.
===== When testing the bugfix patch:
[attachment:"AddThemeSearch-withPR6976.gif"] shows the results of Steps 4
and 5.
* Step 2. In the search box, enter a valid theme's name or part of a name,
e.g. "News".
* ✅ Page refreshes and displays a list of themes with "News" in their
name.
* Step 3. In the search box, press return or enter key.
* ✅ Nothing happens.
* Step 4: In the search box, enter an invalid theme name, e.g.
"sometheme".
* ✅ Page refreshes with no themes listed and a "No themes found. Try a
different search." message in the search results.
* Step 5. In the search box, press return or enter key.
* ✅ Nothing happens.
== Summary
I can reproduce the issues and with the patch, the issues are resolved.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61578#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list