From f445cbf975a0396cd89b7db0c69c1200be358456 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sun, 26 Sep 2010 08:31:16 +0000 Subject: [PATCH] Have get_boundary_post sort by post_date, not ID. props scribu, jk0. fixes #14035. git-svn-id: https://develop.svn.wordpress.org/trunk@15660 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/link-template.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index 7a912676b1..f657c69274 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -1136,7 +1136,7 @@ function prev_post_rel_link($title = '%title', $in_same_cat = false, $excluded_c /** * Retrieve boundary post. * - * Boundary being either the first or last post by publish date within the contraitns specified + * Boundary being either the first or last post by publish date within the constraints specified * by in same category or excluded categories. * * @since 2.8.0 @@ -1176,7 +1176,7 @@ function get_boundary_post($in_same_cat = false, $excluded_categories = '', $sta $order = $start ? 'ASC' : 'DESC'; - return get_posts( array('numberposts' => 1, 'no_found_rows' => true, 'order' => $order, 'orderby' => 'ID', 'category' => $categories) ); + return get_posts( array('numberposts' => 1, 'category' => $categories, 'order' => $order) ); } /**