Make WordPress Core

Ticket #56978: 56978.diff

File 56978.diff, 542 bytes (added by benjgrolleau, 11 months ago)

First patch.

  • src/wp-admin/includes/revision.php

    diff --git a/src/wp-admin/includes/revision.php b/src/wp-admin/includes/revision.php
    index 01ef368d40..372f1353b2 100644
    a b function wp_prepare_revisions_for_js( $post, $selected_revision_id, $from = null 
    194194
    195195        $show_avatars = get_option( 'show_avatars' );
    196196
    197         cache_users( wp_list_pluck( $revisions, 'post_author' ) );
     197        update_post_author_caches( $post );
    198198
    199199        $can_restore = current_user_can( 'edit_post', $post->ID );
    200200        $current_id  = false;