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. Built from https://develop.svn.wordpress.org/trunk@53483 git-svn-id: http://core.svn.wordpress.org/trunk@53072 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -143,6 +143,7 @@ if ( ! function_exists( 'cache_users' ) ) :
|
||||
$list = implode( ',', $clean );
|
||||
|
||||
$users = $wpdb->get_results( "SELECT * FROM $wpdb->users WHERE ID IN ($list)" );
|
||||
|
||||
foreach ( $users as $user ) {
|
||||
update_user_caches( $user );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user