[wp-trac] [WordPress Trac] #64073: Attachments REST API: extend to support ordering by `mime_type`.

WordPress Trac noreply at wordpress.org
Fri Oct 3 14:50:08 UTC 2025


#64073: Attachments REST API: extend to support ordering by `mime_type`.
--------------------------------------+------------------------------
 Reporter:  ramonopoly                |       Owner:  (none)
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  REST API                  |     Version:  trunk
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  rest-api
--------------------------------------+------------------------------

Comment (by TimothyBlynJacobs):

 I'm totally failing to find this ticket. But `WP_Query` has an issue where
 doing an order by by a non-unique field results in posts being returned in
 an unpredictable order. That means, as a user paginates over the query,
 they may end up not seeing all posts and instead see duplicates depending
 on how MySQL decides to order posts with the same `mime_type`.

 So we may not want to ship this as a feature until that issue is resolved.

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


More information about the wp-trac mailing list