Make WordPress Core


Ignore:
Timestamp:
10/09/2023 11:01:15 PM (2 years ago)
Author:
peterwilsoncc
Message:

Query: Rename _prime_post_parents_caches() for clarity.

Change the name of _prime_post_parents_caches() to _prime_post_parent_id_caches() to make it clearer only the parent post ID is cached rather than the entire post parent object.

Follow up to [56763].

Props spacedmonkey, joemcgill, peterwilsoncc.
See #59188.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post.php

    r56773 r56811  
    77987798
    77997799/**
    7800  * Prime post parent caches.
     7800 * Prime the cache containing the parent ID of various post objects.
    78017801 *
    78027802 * @global wpdb $wpdb WordPress database abstraction object.
     
    78067806 * @param int[] $ids ID list.
    78077807 */
    7808 function _prime_post_parents_caches( array $ids ) {
     7808function _prime_post_parent_id_caches( array $ids ) {
    78097809    global $wpdb;
    78107810
Note: See TracChangeset for help on using the changeset viewer.