[wp-trac] [WordPress Trac] #65298: Searched text is not cleared from the Library search bar after refresh

WordPress Trac noreply at wordpress.org
Thu Jun 4 09:25:18 UTC 2026


#65298: Searched text is not cleared from the Library search bar after refresh
-------------------------------------------------+-------------------------
 Reporter:  abduremon                            |       Owner:
                                                 |  westonruter
     Type:  defect (bug)                         |      Status:  reviewing
 Priority:  normal                               |   Milestone:  7.1
Component:  Administration                       |     Version:  4.9
 Severity:  major                                |  Resolution:
 Keywords:  has-screenshots has-patch needs-     |     Focuses:
  testing                                        |  administration
-------------------------------------------------+-------------------------

Comment (by hmbashar):

 == Test Report
 Patch tested: https://github.com/WordPress/wordpress-develop/pull/11938

 === Environment
 - WordPress: 7.1-alpha-20260522.071116
 - Subdirectory: No
 - PHP: 8.3.31
 - Server: PHP.wasm
 - Database: WP_SQLite_Driver (Server: 8.0.38 / Client: 3.51.0)
 - Browser: Chrome 148.0.0.0
 - OS: macOS
 - Theme: Twenty Twenty-Five 1.5
 - MU Plugins: None activated
 - Plugins:
   * Test Reports 1.3.0


 Steps tested:

 Navigated to Media → Library.
 Searched for test in the Media Library search field.
 Verified that the search query is preserved in the URL
 (upload.php?search=test) and the page loads correctly.

 Result: ✅ Patch works as expected and resolves the reported issue. No
 regressions observed during testing.

 Screenshots attached.
 [[Image(https://i.ibb.co.com/fzWSKVYS/1.png)]]
 [[Image(https://i.ibb.co.com/Kp37yqwC/2.png)]]

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/65298#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list