mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
When passing args to the `WP_Query::__construct()` method, it internally executes the `WP_Query::get_posts()` method and stores the result in the `WP_Query::posts` property. When calling `WP_Query::get_posts()` again, the same SQL query gets executed, and the result is again stored in the `WP_Query::posts` property. Thus, the correct usage is to read the posts already stored in the `WP_Query::posts` property. Follow-up to [1062/tests], [1065/tests], [1066/tests], [1070/tests], [29805], [31286], [49900], [51144]. Props david.binda. Fixes #54822. git-svn-id: https://develop.svn.wordpress.org/trunk@52577 602fd350-edb4-49c9-b593-d223f7449a82 |
||
|---|---|---|
| .. | ||
| commentCount.php | ||
| conditionals.php | ||
| date.php | ||
| dateQuery.php | ||
| generatePostdata.php | ||
| invalidQueries.php | ||
| isTerm.php | ||
| metaQuery.php | ||
| noFoundRows.php | ||
| parseQuery.php | ||
| postStatus.php | ||
| results.php | ||
| search.php | ||
| setupPostdata.php | ||
| stickies.php | ||
| taxQuery.php | ||
| vars.php | ||
| verboseRewriteRules.php | ||