Make WordPress Core

Changeset 53692 for trunk


Ignore:
Timestamp:
07/11/2022 06:16:22 PM (20 months ago)
Author:
SergeyBiryukov
Message:

Editor: Include user's name in the wp_refresh_post_lock() response.

This ensures that the post lock data returned by the Heartbeat API is consistent.

Previously, wp_check_locked_posts() was updated to return the name of the user currently editing the post, but the wp_refresh_post_lock() response did not get a similar change.

Follow-up to [53070].

Props nathan.noom.
Fixes #56197.

File:
1 edited

Legend:

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

    r53426 r53692  
    11911191        if ( $user ) {
    11921192            $error = array(
     1193                'name' => $user->display_name,
    11931194                /* translators: %s: User's display name. */
    11941195                'text' => sprintf( __( '%s has taken over and is currently editing.' ), $user->display_name ),
Note: See TracChangeset for help on using the changeset viewer.