diff --git a/wp-includes/class-wp-query.php b/wp-includes/class-wp-query.php index a52b5a484e..3fcb942aa7 100644 --- a/wp-includes/class-wp-query.php +++ b/wp-includes/class-wp-query.php @@ -3191,7 +3191,7 @@ class WP_Query { return $this->posts; } elseif ( 'id=>parent' === $q['fields'] ) { - _prime_post_parents_caches( $post_ids ); + _prime_post_parent_id_caches( $post_ids ); /** @var int[] */ $post_parents = wp_cache_get_multiple( $post_ids, 'post_parent' ); diff --git a/wp-includes/post.php b/wp-includes/post.php index 1f2c65e158..a85d8fbdb5 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -7797,7 +7797,7 @@ function _prime_post_caches( $ids, $update_term_cache = true, $update_meta_cache } /** - * Prime post parent caches. + * Prime the cache containing the parent ID of various post objects. * * @global wpdb $wpdb WordPress database abstraction object. * @@ -7805,7 +7805,7 @@ function _prime_post_caches( $ids, $update_term_cache = true, $update_meta_cache * * @param int[] $ids ID list. */ -function _prime_post_parents_caches( array $ids ) { +function _prime_post_parent_id_caches( array $ids ) { global $wpdb; $non_cached_ids = _get_non_cached_ids( $ids, 'post_parent' ); diff --git a/wp-includes/version.php b/wp-includes/version.php index c60903ab70..09b51ab409 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.4-beta2-56810'; +$wp_version = '6.4-beta2-56811'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.