mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-20 19:56:49 +01: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. Built from https://develop.svn.wordpress.org/branches/6.0@53693 git-svn-id: http://core.svn.wordpress.org/branches/6.0@53252 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d6d3444b17
commit
bb5f476908
|
|
@ -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 ),
|
||||
);
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.0.1-RC1-53668';
|
||||
$wp_version = '6.0.1-RC1-53693';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user