From 03fc3cde8effb17775e674246aee86526b0b2234 Mon Sep 17 00:00:00 2001 From: spacedmonkey Date: Tue, 6 Dec 2022 13:42:13 +0000 Subject: [PATCH] Revisions: Use `update_post_author_caches` in `wp_prepare_revisions_for_js` function. The `update_post_author_caches` function was added in [53482]. Replace call to `cache_users` function with `update_post_author_caches`, for consistency and code quality. Props benjgrolleau, spacedmonkey. Fixes #56978. Built from https://develop.svn.wordpress.org/trunk@54939 git-svn-id: http://core.svn.wordpress.org/trunk@54491 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/revision.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/revision.php b/wp-admin/includes/revision.php index 01ef368d40..ebc10d8630 100644 --- a/wp-admin/includes/revision.php +++ b/wp-admin/includes/revision.php @@ -194,7 +194,7 @@ function wp_prepare_revisions_for_js( $post, $selected_revision_id, $from = null $show_avatars = get_option( 'show_avatars' ); - cache_users( wp_list_pluck( $revisions, 'post_author' ) ); + update_post_author_caches( $revisions ); $can_restore = current_user_can( 'edit_post', $post->ID ); $current_id = false; diff --git a/wp-includes/version.php b/wp-includes/version.php index 25e4bd6fa3..54426a891e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-alpha-54938'; +$wp_version = '6.2-alpha-54939'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.