Changeset 53483 for trunk/src/wp-includes/post.php
- Timestamp:
- 06/10/2022 03:15:07 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r53482 r53483 7425 7425 7426 7426 /** 7427 * Calls major cache updating functions for list of Post objects.7427 * Updates post, term, and metadata caches for a list of post objects. 7428 7428 * 7429 7429 * @since 1.5.0 7430 7430 * 7431 * @param WP_Post[] $posts Array of Post objects7431 * @param WP_Post[] $posts Array of post objects (passed by reference). 7432 7432 * @param string $post_type Optional. Post type. Default 'post'. 7433 7433 * @param bool $update_term_cache Optional. Whether to update the term cache. Default true. … … 7476 7476 7477 7477 /** 7478 * Prime post author user caches.7478 * Updates post author user caches for a list of post objects. 7479 7479 * 7480 7480 * @since 6.1.0 7481 7481 * 7482 * @param WP_Post[] $posts Array of Post objects7482 * @param WP_Post[] $posts Array of post objects. 7483 7483 */ 7484 7484 function update_post_author_caches( $posts ) { … … 7486 7486 $author_ids = array_map( 'absint', $author_ids ); 7487 7487 $author_ids = array_unique( array_filter( $author_ids ) ); 7488 7488 7489 cache_users( $author_ids ); 7489 7490 } 7490 7491 7491 7492 /** 7492 * Updates metadata cache for list of post IDs.7493 * Updates metadata cache for a list of post IDs. 7493 7494 * 7494 7495 * Performs SQL query to retrieve the metadata for the post IDs and updates the
Note: See TracChangeset
for help on using the changeset viewer.