Make WordPress Core

Changeset 27184


Ignore:
Timestamp:
02/17/2014 09:22:25 PM (11 years ago)
Author:
wonderboymusic
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/revision.php

    r27057 r27184  
    372372        return array();
    373373
    374     $defaults = array( 'order' => 'DESC', 'orderby' => 'date', 'check_enabled' => true );
     374    $defaults = array( 'order' => 'DESC', 'orderby' => 'date ID', 'check_enabled' => true );
    375375    $args = wp_parse_args( $args, $defaults );
    376376
Note: See TracChangeset for help on using the changeset viewer.