Make WordPress Core


Ignore:
Timestamp:
06/10/2022 03:15:07 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Query: Some documentation and test improvements for update_post_author_caches():

  • Make the descriptions for update_post_author_caches() and update_post_caches() more specific.
  • Move the unit test into its own file, for consistency with update_post_cache() tests. This also allows for using shared fixtures in case more tests are added in the future.

Follow-up to [53482].

See #55716.

File:
1 edited

Legend:

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

    r53482 r53483  
    144144
    145145        $users = $wpdb->get_results( "SELECT * FROM $wpdb->users WHERE ID IN ($list)" );
     146
    146147        foreach ( $users as $user ) {
    147148            update_user_caches( $user );
Note: See TracChangeset for help on using the changeset viewer.