Opened 14 years ago
Closed 14 years ago
#14528 closed enhancement (fixed)
Set no_found_rows = true in get_posts()
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 )
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.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
(In [15548]) Always set no_found_rows = true in get_posts(). Fixes #14528