Avatar block throws encountered error if the Avatar Display turned off from the Discussion settings #41308
Labels
[Block] Avatar
Affects the Avatar Block
Good First Issue
An issue that's suitable for someone looking to contribute for the first time
[Type] Bug
An existing feature does not function as intended
Description
If the Avatar Display turns off from the Settings > Discussion > Show Avatars(checkout): https://i.imgur.com/60w37sA.png
Avatar block still shows on Gutenberg blocks(which should not be shown): https://i.imgur.com/OYMqWaX.png
And if the Avatar block takes on an editor, it throws encountered error: https://i.imgur.com/y9LSwER.png
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: