-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[Block Library - Site Logo]: Return nothing if logo is not set #31513
Conversation
Size Change: +309 B (0%) Total Size: 1.31 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be worth a comment
I was able to reproduce the problem, and the pr solves it. Sidenote: Without the customizer it is still not possible to remove the image from the logo block, only replace it or remove the entire block. |
Co-authored-by: Carolina Nymark <[email protected]>
Added it as a task in #30406 so we remember. |
Description
Currently, the site logo block renders an empty div if the theme has support for a custom logo but the user has not set one.
This PR adjusts the render callback to return nothing if the custom logo has not been set.
How has this been tested?
Types of changes
Bug fix
Checklist:
*.native.js
files for terms that need renaming or removal).