mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Query: Some documentation and test improvements for update_post_author_caches():
* Make the descriptions for `update_post_author_caches()` and `update_post_caches()` more specific. * Move the unit test into its own file, for consistency with `update_post_cache()` tests. This also allows for using shared fixtures in case more tests are added in the future. Follow-up to [53482]. See #55716. git-svn-id: https://develop.svn.wordpress.org/trunk@53483 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -3434,9 +3434,11 @@ class WP_Query {
|
||||
*/
|
||||
public function the_post() {
|
||||
global $post;
|
||||
|
||||
if ( ! $this->in_the_loop ) {
|
||||
update_post_author_caches( $this->posts );
|
||||
}
|
||||
|
||||
$this->in_the_loop = true;
|
||||
|
||||
if ( -1 == $this->current_post ) { // Loop has just started.
|
||||
|
||||
Reference in New Issue
Block a user