Make WordPress Core

Opened 8 years ago

Last modified 8 years ago

#14528 closed enhancement

Set no_found_rows = true in get_posts() — at Version 1

Reported by: scribu Owned by:
Milestone: 3.1 Priority: normal
Severity: normal Version:
Component: Performance Keywords: has-patch commit
Focuses: Cc:

Description (last modified by scribu)

When using get_posts(), you have no way of accesing $wp_query->found_posts, making the SELECT FOUND_ROWS() query useless.

So, the no_found_rows flag should always be set.

Change History (2)

8 years ago

#1 @scribu
8 years ago

  • Description modified (diff)
Note: See TracTickets for help on using tickets.