Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Stop calling consecutive `get_post()` and instead call one big `get_posts()` call for fewer db queries. Props @westi for the suggestion. * Let's instead do one big str_replace with arrays instead of a bunch of repeated ones. * I can haz typo * We don't need `numberposts`. get_posts already sets that to the number of array items passed into include. * Add function to prime all the attachment meta in one go. * Correction, this is being done already. https://github.com/WordPress/WordPress/blob/df0958697a5d897a15ea78d37a001e2f3752875f/wp-includes/class-wp-query.php#L694
- Loading branch information