[wp-trac] [WordPress Trac] #26042: wp_save_post_revision() can compare against the wrong $last_revision post

WordPress Trac noreply at wordpress.org
Fri Nov 15 06:55:30 UTC 2013


#26042: wp_save_post_revision() can compare against the wrong $last_revision post
----------------------------+------------------------------
 Reporter:  wonderboymusic  |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Revisions       |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |
----------------------------+------------------------------

Comment (by nacin):

 We could sort by both, `'orderby' => 'date ID'` should be fine, since we
 want DESC for both. We do this in some other places.

 Great find, this has been bothering a number of us for months.

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


More information about the wp-trac mailing list