Skip to content

Added by column shows an empty grey circle for old templates if the site has no logo #37086

@talldan

Description

@talldan

Description

This issue follows up on what @paaljoachim mentioned here - #36763 (comment)

The Added By column can show an empty dark grey circle in some situations.

It requires a very specific scenario. The user needs to have created the template or template part before author support was added to templates. This causes the site logo and name to display as a fallback. If the site has no logo, this is when a grey circle is shown.

It's a pretty easy to show an icon as a fallback, so we should do it. Just need to know which icon to use 😄

Step-by-step reproduction instructions

Testing is pretty difficult since it requires either existing old templates or for you to create a new template using an old version of WordPress and Gutenberg (maybe something like WP 5.8.2 and 11.9)

  1. Remove any site logo
  2. Create a template or template part
  3. View the template or template part in the list

Screenshots, screen recording, code snippet

Screenshot 2021-11-26 at 13 03 40

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

Metadata

Metadata

Assignees

Labels

[Feature] Site EditorRelated to the overarching Site Editor (formerly "full site editing")[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions