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:
parent
ad904f3307
commit
fbdaa80fde
@ -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
Block a user