Skip to content

Commit 7932ebc

Browse files
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. git-svn-id: https://develop.svn.wordpress.org/trunk@53692 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 01021eb commit 7932ebc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/wp-admin/includes/misc.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,6 +1190,7 @@ function wp_refresh_post_lock( $response, $data, $screen_id ) {
11901190

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 ),
11951196
);

0 commit comments

Comments
 (0)