Commit e278fe3
committed
Posts, Post Types: Avoid redundant SQL query in get_pages().
This avoids an additional query by passing the query args directly to the `WP_Query::query()` method, rather than to the constructor and calling get_posts(), following [55569].
Props david.binda, azaozz, spacedmonkey, mukesh27, flixos90, SergeyBiryukov, joemcgill.
Fixes #59224.
git-svn-id: https://develop.svn.wordpress.org/trunk@56491 602fd350-edb4-49c9-b593-d223f7449a821 parent 3d2f4d5 commit e278fe3
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6105 | 6105 | | |
6106 | 6106 | | |
6107 | 6107 | | |
6108 | | - | |
6109 | | - | |
| 6108 | + | |
| 6109 | + | |
6110 | 6110 | | |
6111 | 6111 | | |
6112 | 6112 | | |
| |||
0 commit comments