WordPress.org

Make WordPress Core

Changeset 15660


Ignore:
Timestamp:
09/26/2010 08:31:16 AM (8 years ago)
Author:
nacin
Message:

Have get_boundary_post sort by post_date, not ID. props scribu, jk0. fixes #14035.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/link-template.php

    r15596 r15660  
    11371137 * Retrieve boundary post.
    11381138 *
    1139  * Boundary being either the first or last post by publish date within the contraitns specified
     1139 * Boundary being either the first or last post by publish date within the constraints specified
    11401140 * by in same category or excluded categories.
    11411141 *
     
    11771177    $order = $start ? 'ASC' : 'DESC';
    11781178
    1179     return get_posts( array('numberposts' => 1, 'no_found_rows' => true, 'order' => $order, 'orderby' => 'ID', 'category' => $categories) );
     1179    return get_posts( array('numberposts' => 1, 'category' => $categories, 'order' => $order) );
    11801180}
    11811181
Note: See TracChangeset for help on using the changeset viewer.