Always set no_found_rows = true in get_posts(). Fixes #14528

git-svn-id: https://develop.svn.wordpress.org/trunk@15548 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
scribu 2010-08-28 11:51:02 +00:00
parent ad904f3307
commit fbdaa80fde
1 changed files with 1 additions and 0 deletions

View File

@ -1123,6 +1123,7 @@ function get_posts($args = null) {
$r['post__not_in'] = wp_parse_id_list( $r['exclude'] );
$r['caller_get_posts'] = true;
$r['no_found_rows'] = true;
$get_posts = new WP_Query;
return $get_posts->query($r);