[wp-trac] [WordPress Trac] #64467: Media Library Grid view displays attachments in the wrong order when an order query var is present but not normalized (e.g. `order=desc` or `order=pizza`). Not a `WP_Query` / database issue: the server returns correctly ordered results; the UI reverses them client‑side in JavaScript.
WordPress Trac
noreply at wordpress.org
Thu Jan 1 08:07:53 UTC 2026
#64467: Media Library Grid view displays attachments in the wrong order when an
order query var is present but not normalized (e.g. `order=desc` or
`order=pizza`). Not a `WP_Query` / database issue: the server returns
correctly ordered results; the UI reverses them client‑side in JavaScript.
-------------------------------------------------+-------------------------
Reporter: trivedikavit | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: Media | Version:
Severity: minor | Resolution:
Keywords: has-patch needs-testing has-test- | Focuses: javascript
info has-screenshots javascript |
-------------------------------------------------+-------------------------
Changes (by trivedikavit):
* Attachment "correct-order.png" added.
Correct Order in Grid View with `order=DESC`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64467>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list