You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While reviewing #997@laurelfulford pointed out that the Co-Author Avatar block's image dimension controls don't match the controls for the core Author Avatar block in WordPress 6.4 and above. #997 (comment)
Between WordPress 6.3 and 6.4 the Avatar blocks were upgraded to use a range control instead of just the sizes defined in rest_get_avatar_sizes.
This works for Gravatar because the width is defined by a query parameter in the URL. The same does not apply as easily for images uploaded to the WordPress media library because the sizes can be limited to those determined by theme and plugin code.
Since a Co-Author could have either a Gravatar or a featured image that was uploaded to the media library, some work needs to be done to support both use cases in the Co-Author Avatar block.
In #997 there are separate blocks for Co-Author Avatar and a Co-Author Image. I did this to make a clear distinction between Avatar which supports Gravatar and is always square as opposed to Image which supports the media library and has the full dimension controls.
If we have to support all the dimension controls in both blocks, it might make sense to make them into a single block and make Gravatar support an option that is true by default.
The text was updated successfully, but these errors were encountered:
douglas-johnson
changed the title
Update Co-Author Avatar block for feature parity with User Avatar block
Update Co-Author Avatar block for feature parity with Author Avatar block
Feb 12, 2024
While reviewing #997 @laurelfulford pointed out that the Co-Author Avatar block's image dimension controls don't match the controls for the core Author Avatar block in WordPress 6.4 and above. #997 (comment)
Between WordPress 6.3 and 6.4 the Avatar blocks were upgraded to use a range control instead of just the sizes defined in
rest_get_avatar_sizes
.This works for Gravatar because the width is defined by a query parameter in the URL. The same does not apply as easily for images uploaded to the WordPress media library because the sizes can be limited to those determined by theme and plugin code.
Since a Co-Author could have either a Gravatar or a featured image that was uploaded to the media library, some work needs to be done to support both use cases in the Co-Author Avatar block.
In #997 there are separate blocks for Co-Author Avatar and a Co-Author Image. I did this to make a clear distinction between Avatar which supports Gravatar and is always square as opposed to Image which supports the media library and has the full dimension controls.
If we have to support all the dimension controls in both blocks, it might make sense to make them into a single block and make Gravatar support an option that is true by default.
The text was updated successfully, but these errors were encountered: