[wp-trac] [WordPress Trac] #39968: Media Library: deleting all items on the last page loses the pagination/navigation buttons and shows message
WordPress Trac
noreply at wordpress.org
Sat Jun 28 23:35:08 UTC 2025
#39968: Media Library: deleting all items on the last page loses the
pagination/navigation buttons and shows message
-------------------------------------+-----------------------------
Reporter: donsony | Owner: antpb
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Future Release
Component: Media | Version: 4.7.2
Severity: normal | Resolution:
Keywords: has-patch has-test-info | Focuses: ui
-------------------------------------+-----------------------------
Changes (by SirLouen):
* keywords: has-patch needs-testing => has-patch has-test-info
Comment:
== Combined Bug Reproduction and Patch Test Report
=== Description
✅ This report validates that the indicated patch works as expected.
Patch tested:
https://core.trac.wordpress.org/attachment/ticket/39968/39968.2.patch
=== Environment
- WordPress: 6.9-alpha-60093-src
- PHP: 8.2.28
- Server: nginx/1.29.0
- Database: mysqli (Server: 8.4.5 / Client: mysqlnd 8.2.28)
- Browser: Chrome 137.0.0.0
- OS: Windows 10/11
- Theme: Twenty Fifteen 4.0
- MU Plugins: None activated
- Plugins:
* Test Reports 1.2.0
=== Reproduction Instructions
1. Add a couple images, lets say 10 units
2. Go to media library
3. Switch to List View
4. To make this easier, go to the Screen Options tab in the top and select
Number of Items per page, 3
5. Go to the last page. If you added 10 units, technically you will see
just one image in the last page
6. Delete that image
7. 🐞 All pagination links disappear and No media found in the list
[[Image(https://i.imgur.com/Ct4A0tz.png)]]
=== Expected results
- After deleting the last item, it should present the previous page, in
the reproduction example, the page 3.
=== Actual Results
1. ✅ Issue resolved with patch.
=== Additional Notes
- It seems that this has been like this since its conception [15491]. Just
a small bug unlikely to be reproduced.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39968#comment:28>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list