[wp-trac] [WordPress Trac] #17485: Sort Order by Date in WP Gallery resorts to order by ID

WordPress Trac wp-trac at lists.automattic.com
Thu May 19 13:58:49 UTC 2011


#17485: Sort Order by Date in WP Gallery resorts to order by ID
--------------------------+------------------------------
 Reporter:  nrajesh       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Gallery       |     Version:  3.1.2
 Severity:  critical      |  Resolution:
 Keywords:  needs-patch   |
--------------------------+------------------------------

Comment (by azaozz):

 Actually order by date = order by ID as the ID field is self-incrementing
 and there's no scheduled publishing for attachments. So if you upload 5
 images at the same time they will get consecutive IDs according to the
 order they were uploaded. If you upload them separately (i.e. one upload
 every hour, etc.) the IDs would still match the order they were uploaded.

 You can test this by running couple of simple `SELECT` from phpMyAdmin or
 similar.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17485#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list