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:
parent
349fbcaf30
commit
bc0c1bb3f0
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue