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

WordPress Trac noreply at wordpress.org
Mon Feb 17 21:22:27 UTC 2014


#26042: wp_save_post_revision() can compare against the wrong $last_revision post
----------------------------------------+-----------------------------
 Reporter:  wonderboymusic              |       Owner:  wonderboymusic
     Type:  defect (bug)                |      Status:  closed
 Priority:  normal                      |   Milestone:  3.9
Component:  Revisions                   |     Version:
 Severity:  normal                      |  Resolution:  fixed
 Keywords:  has-patch needs-unit-tests  |     Focuses:
----------------------------------------+-----------------------------
Changes (by wonderboymusic):

 * owner:   => wonderboymusic
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"27184"]:
 {{{
 #!CommitTicketReference repository="" revision="27184"
 `wp_get_post_revisions()` should have a default `orderby` of `date ID` to
 tie-break rapidly added revisions - namely, when unit tests are run. There
 is a test that occasionally fails when running all tests, and always fails
 when running `phpunit tests/phpunit/tests/post/revisions.php `. This fixes
 that.

 Fixes #26042.
 }}}

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


More information about the wp-trac mailing list