mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-28 23:27:39 +02:00
Do not load Taxonomy cache & Postmeta cache in get_boundary_post(). Fixes #15028
git-svn-id: http://svn.automattic.com/wordpress/trunk@15701 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6129438ba5
commit
057627e640
@ -1176,7 +1176,7 @@ function get_boundary_post($in_same_cat = false, $excluded_categories = '', $sta
|
|||||||
|
|
||||||
$order = $start ? 'ASC' : 'DESC';
|
$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) );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user