Make WordPress Core

Opened 8 years ago

Last modified 8 years ago

#14528 closed enhancement

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

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


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

So, the no_found_rows flag should always be set.

Change History (1)

8 years ago

Note: See TracTickets for help on using tickets.