WordPress.org

Make WordPress Core

Ticket #14035: 14035.2.diff

File 14035.2.diff, 788 bytes (added by scribu, 8 years ago)

omit no_found_rows; correct spelling

  • wp-includes/link-template.php

     
    11471147/**
    11481148 * Retrieve boundary post.
    11491149 *
    1150  * Boundary being either the first or last post by publish date within the contraitns specified
     1150 * Boundary being either the first or last post by publish date within the constraints specified
    11511151 * by in same category or excluded categories.
    11521152 *
    11531153 * @since 2.8.0
     
    11871187
    11881188        $order = $start ? 'ASC' : 'DESC';
    11891189
    1190         return get_posts( array('numberposts' => 1, 'no_found_rows' => true, 'order' => $order, 'orderby' => 'ID', 'category' => $categories) );
     1190        return get_posts( array('numberposts' => 1) );
    11911191}
    11921192
    11931193/**