Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/26/2017 10:14:20 PM (8 years ago)
Author:
johnjamesjacoby
Message:

Queries: Update orderby clauses of last-id queries to ensure more accurate results, specifically for imported forums and posts where IDs and post_date columns might be inverted.

Also update a few tests to be less cranky with exact array results.

Props thebrandonallen. Fixes #3108.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/common/functions.php

    r6432 r6434  
    15001500        'post_status' => $post_status,
    15011501        'post_type'   => $post_type,
     1502        'orderby'     => array(
     1503            'post_date' => 'DESC',
     1504            'ID'        => 'DESC'
     1505        ),
    15021506
    15031507        // Maybe change these later
Note: See TracChangeset for help on using the changeset viewer.