From 3d2e3625d47f381a7e160b6d74532a743accf211 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Mon, 4 Oct 2010 09:17:18 +0000 Subject: [PATCH] Do not load Taxonomy cache & Postmeta cache in get_boundary_post(). Fixes #15028 git-svn-id: https://develop.svn.wordpress.org/trunk@15701 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 f657c69274..44eb5a87c7 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -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, 'category' => $categories, 'order' => $order) ); + return get_posts( array('numberposts' => 1, 'category' => $categories, 'order' => $order, 'update_post_term_cache' => false, 'update_post_meta_cache' => false) ); } /** @@ -1193,7 +1193,7 @@ function get_boundary_post($in_same_cat = false, $excluded_categories = '', $sta * @return string */ function get_boundary_post_rel_link($title = '%title', $in_same_cat = false, $excluded_categories = '', $start = true) { - $posts = get_boundary_post($in_same_cat,$excluded_categories,$start); + $posts = get_boundary_post($in_same_cat, $excluded_categories, $start); // If there is no post stop. if ( empty($posts) ) return;