Changeset 54771 for trunk/src/wp-includes/post.php
- Timestamp:
- 11/09/2022 12:57:02 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r54712 r54771 7462 7462 */ 7463 7463 function update_post_author_caches( $posts ) { 7464 /* 7465 * cache_users() is a pluggable function so is not available prior 7466 * to the `plugins_loaded` hook firing. This is to ensure against 7467 * fatal errors when the function is not available. 7468 */ 7469 if ( ! function_exists( 'cache_users' ) ) { 7470 return; 7471 } 7472 7464 7473 $author_ids = wp_list_pluck( $posts, 'post_author' ); 7465 7474 $author_ids = array_map( 'absint', $author_ids );
Note: See TracChangeset
for help on using the changeset viewer.