From bc0c1bb3f06891497d01ee57dd83806b5a4d007a Mon Sep 17 00:00:00 2001 From: scribu Date: Sat, 28 Aug 2010 11:51:02 +0000 Subject: [PATCH] Always set no_found_rows = true in get_posts(). Fixes #14528 git-svn-id: http://svn.automattic.com/wordpress/trunk@15548 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/post.php b/wp-includes/post.php index 08b2b45126..5f01a2f762 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -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);