Changeset 53506 for trunk/src/wp-includes/post.php
- Timestamp:
- 06/15/2022 10:41:32 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r53484 r53506 7491 7491 7492 7492 /** 7493 * Prime post parent post caches. 7494 * 7495 * @since 6.1.0 7496 * 7497 * @param WP_Post[] $posts Array of Post objects. 7498 */ 7499 function update_post_parent_caches( $posts ) { 7500 $parent_ids = wp_list_pluck( $posts, 'post_parent' ); 7501 $parent_ids = array_map( 'absint', $parent_ids ); 7502 $parent_ids = array_unique( array_filter( $parent_ids ) ); 7503 if ( ! empty( $parent_ids ) ) { 7504 _prime_post_caches( $parent_ids, false ); 7505 } 7506 } 7507 7508 /** 7493 7509 * Updates metadata cache for a list of post IDs. 7494 7510 *
Note: See TracChangeset
for help on using the changeset viewer.