mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
Editor: Fix post lock data inconsistencies
Backporting fixes introduced in WordPress/gutenberg#37914. Props Mamaduka. Fixes #55238. git-svn-id: https://develop.svn.wordpress.org/trunk@53070 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -151,9 +151,9 @@ if ( $user_id ) {
|
||||
if ( $locked ) {
|
||||
$user = get_userdata( $user_id );
|
||||
$user_details = array(
|
||||
'name' => $user->display_name,
|
||||
'avatar' => get_avatar_url( $user_id, array( 'size' => 128 ) ),
|
||||
'name' => $user->display_name,
|
||||
);
|
||||
$avatar = get_avatar_url( $user_id, array( 'size' => 64 ) );
|
||||
}
|
||||
|
||||
$lock_details = array(
|
||||
|
||||
@@ -1137,6 +1137,7 @@ function wp_check_locked_posts( $response, $data, $screen_id ) {
|
||||
|
||||
if ( $user && current_user_can( 'edit_post', $post_id ) ) {
|
||||
$send = array(
|
||||
'name' => $user->display_name,
|
||||
/* translators: %s: User's display name. */
|
||||
'text' => sprintf( __( '%s is currently editing' ), $user->display_name ),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user