Skip to content

Commit

Permalink
Post Lock Modal: Update avatar size (#38040)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka authored Jan 18, 2022
1 parent 5bad8e8 commit 2655c02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/compat/wordpress-6.0/post-lock.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function gutenberg_update_post_lock_details( $settings, $block_editor_context )

$user_id = wp_check_post_lock( $block_editor_context->post->ID );
if ( $user_id ) {
$settings['postLock']['user']['avatar'] = get_avatar_url( $user_id, array( 'size' => 64 ) );
$settings['postLock']['user']['avatar'] = get_avatar_url( $user_id, array( 'size' => 128 ) );
}

return $settings;
Expand Down
2 changes: 1 addition & 1 deletion packages/editor/src/components/post-locked-modal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default function PostLockedModal() {
isTakeover: true,
user: {
name: received.lock_error.name,
avatar: received.lock_error.avatar_src,
avatar: received.lock_error.avatar_src_2x,
},
} );
} else if ( received.new_lock ) {
Expand Down

0 comments on commit 2655c02

Please sign in to comment.