[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:32 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 "incorrect-order.png" added.

 Incorrect 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