Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post Author Block: Inconsistent Front/Back End Avatar Markup and Classes #31962

Closed
justintadlock opened this issue May 19, 2021 · 1 comment · Fixed by #38591
Closed

Post Author Block: Inconsistent Front/Back End Avatar Markup and Classes #31962

justintadlock opened this issue May 19, 2021 · 1 comment · Fixed by #38591
Assignees
Labels
[Block] Post Author Affects the Post Author Block

Comments

@justintadlock
Copy link
Contributor

The <img> tag for the Post Author block avatar outputs the following on the front end:

<img alt="" src="#" class="avatar avatar-48 photo" height="48" width="48" loading="lazy">

In the editor, the HTML looks like:

<img width="48" src="#" alt="Justin Tadlock">

The editor should at least have the same .avatar class.

Also, the alt text should match. Is there a reason it's empty on the front end?

@annezazu annezazu added the [Block] Post Author Affects the Post Author Block label May 19, 2021
@aristath
Copy link
Member

I think this block is about to get completely refactored and AFAIK the plan is to convert it to a wrapper with multiple inner blocks (I could be mistaken though). That's why it's also not going to be included n WP5.8, there's lots to be done here 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Post Author Affects the Post Author Block
Projects
None yet
4 participants