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
This commit is contained in:
scribu 2010-08-28 11:51:02 +00:00
parent 349fbcaf30
commit bc0c1bb3f0
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);