diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php
index 4ceb8dd3a6..d1ee514c34 100644
a
|
b
|
function clean_post_cache( $post ) { |
7383 | 7383 | * @param bool $update_term_cache Optional. Whether to update the term cache. Default true. |
7384 | 7384 | * @param bool $update_meta_cache Optional. Whether to update the meta cache. Default true. |
7385 | 7385 | */ |
7386 | | function update_post_caches( &$posts, $post_type = 'post', $update_term_cache = true, $update_meta_cache = true ) { |
| 7386 | function update_post_caches( &$posts, $post_type = 'post', $update_term_cache = true, $update_meta_cache = true, $update_author_cache = true ) { |
7387 | 7387 | // No point in doing all this work if we didn't match any posts. |
7388 | 7388 | if ( ! $posts ) { |
7389 | 7389 | return; |
… |
… |
function update_post_caches( &$posts, $post_type = 'post', $update_term_cache = |
7422 | 7422 | if ( $update_meta_cache ) { |
7423 | 7423 | update_postmeta_cache( $post_ids ); |
7424 | 7424 | } |
| 7425 | |
| 7426 | if ( $update_author_cache ) { |
| 7427 | update_post_author_caches( $posts ); |
| 7428 | } |
7425 | 7429 | } |
7426 | 7430 | |
7427 | 7431 | /** |