Make WordPress Core

Changeset 17825


Ignore:
Timestamp:
05/06/2011 08:54:43 PM (14 years ago)
Author:
ryan
Message:

Pass no_found_rows to query in recent posts widget. Props scribu. fixes #17203

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/default-widgets.php

    r17765 r17825  
    538538            $number = 10;
    539539
    540         $r = new WP_Query(array('posts_per_page' => $number, 'nopaging' => 0, 'post_status' => 'publish', 'ignore_sticky_posts' => true));
     540        $r = new WP_Query(array('posts_per_page' => $number, 'no_found_rows' => true, 'post_status' => 'publish', 'ignore_sticky_posts' => true));
    541541        if ($r->have_posts()) :
    542542?>
Note: See TracChangeset for help on using the changeset viewer.