mirror of
git://develop.git.wordpress.org/
synced 2025-04-13 00:22:52 +02:00
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. Merges [53692] to the 6.0 branch. Fixes #56197. git-svn-id: https://develop.svn.wordpress.org/branches/6.0@53693 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ac3de7c5b3
commit
9b105d92a4
@ -1190,6 +1190,7 @@ function wp_refresh_post_lock( $response, $data, $screen_id ) {
|
||||
|
||||
if ( $user ) {
|
||||
$error = array(
|
||||
'name' => $user->display_name,
|
||||
/* translators: %s: User's display name. */
|
||||
'text' => sprintf( __( '%s has taken over and is currently editing.' ), $user->display_name ),
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user