[wp-trac] [WordPress Trac] #23923: wp_get_post_revisions returns incorrect order

WordPress Trac noreply at wordpress.org
Wed Apr 3 12:16:20 UTC 2013


#23923: wp_get_post_revisions returns incorrect order
--------------------------+------------------------------
 Reporter:  kovshenin     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Revisions     |     Version:
 Severity:  minor         |  Resolution:
 Keywords:  needs-patch   |
--------------------------+------------------------------

Comment (by kovshenin):

 If you're having trouble reproducing this, try running
 [attachment:23923.reproduce.diff] with `--group 23923`.

 An easy fix would be to order by date and ID instead of date only in
 `wp_get_post_revisions`, but we would need something that explicitly sets
 descending ordering on both columns. #17065 might have a solution.

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


More information about the wp-trac mailing list