WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/22/2014 06:50:11 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Remove unnecessary array_reverse() from wp_get_post_revisions().

WP_Query properly handles multiple 'orderby' values since [28541].

fixes #26042.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/post/revisions.php

    r28541 r28543  
    354354        remove_filter( 'query', array( $this, '_filter_query' ) );
    355355        global $wpdb;
    356         $this->assertContains( "ORDER BY $wpdb->posts.post_date ASC, $wpdb->posts.ID ASC", $sql );
     356        $this->assertContains( "ORDER BY $wpdb->posts.post_date DESC, $wpdb->posts.ID DESC", $sql );
    357357        return $sql;
    358358    }
Note: See TracChangeset for help on using the changeset viewer.