WordPress.org

Make WordPress Core

Changeset 15701


Ignore:
Timestamp:
10/04/2010 09:17:18 AM (8 years ago)
Author:
dd32
Message:

Do not load Taxonomy cache & Postmeta cache in get_boundary_post(). Fixes #15028

File:
1 edited

Legend:

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

    r15660 r15701  
    11771177    $order = $start ? 'ASC' : 'DESC';
    11781178
    1179     return get_posts( array('numberposts' => 1, 'category' => $categories, 'order' => $order) );
     1179    return get_posts( array('numberposts' => 1, 'category' => $categories, 'order' => $order, 'update_post_term_cache' => false, 'update_post_meta_cache' => false) );
    11801180}
    11811181
     
    11941194 */
    11951195function get_boundary_post_rel_link($title = '%title', $in_same_cat = false, $excluded_categories = '', $start = true) {
    1196     $posts = get_boundary_post($in_same_cat,$excluded_categories,$start);
     1196    $posts = get_boundary_post($in_same_cat, $excluded_categories, $start);
    11971197    // If there is no post stop.
    11981198    if ( empty($posts) )
Note: See TracChangeset for help on using the changeset viewer.