WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/10/2010 06:37:03 PM (11 years ago)
Author:
ryan
Message:

Add no_found_rows argument to WP_Query::get_posts() to allow forcibly defeating SQL_CALC_FOUND_ROWS. Use no_found_rows for the query in get_boundary_post(). fixes #12557

File:
1 edited

Legend:

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

    r13635 r13647  
    11591159    $order = $start ? 'ASC' : 'DESC';
    11601160
    1161     return get_posts( array('numberposts' => 1, 'order' => $order, 'orderby' => 'ID', 'category' => $categories) );
     1161    return get_posts( array('numberposts' => 1, 'no_found_rows' => true, 'order' => $order, 'orderby' => 'ID', 'category' => $categories) );
    11621162}
    11631163
Note: See TracChangeset for help on using the changeset viewer.