-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Site Logo: Rename sitelogo to site_logo #31511
Conversation
Size Change: -3 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.
Testing
Requirements
- Can use an existing image from the media library
- Can upload a new image
- Site logo displays in frontend
- Site logo displays in site editor
- Site logo displays in post editor
- Site logo is persisted across various pages
Browsers
- Edge
- Firefox
- Safari
- Chrome
Note: Unrelated to this PR, but the layout of the site logo on the frontend doesn't match the site editor for the tt1-blocks
theme. This issue already exists in the Gutenberg trunk. Did you see anything similar for other themes you tested @creativecoder? I can make a Github issue for the themes team.
Site Editor | Frontend |
---|---|
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.
I did a quick search of the Gutenberg repo and it looks like you caught all instances of sitelogo
. Everything looks reasonable to me 👍
I've pinged some folks who have made commits to this block for additional reviews. |
No strong opinions here. |
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.
Good to go! 👍 ✅
Any concerns here about breaking the Site Logo block for existing Gutenberg plugin users when this option change is released? I can follow up to this PR and add a check for the |
I'm not too concerned personally as it was an experimental block but let's make sure to include this change in 10.6 to avoid breaking it later (since 10.6 stabilizes the block) cc @vdwijngaert |
Description
Since the Site Logo block is being considered for the WP 5.8 release, it seems prudent to make sure the settings match existing naming conventions and data types. This change does 2 things
sitelogo
tosite_logo
.string
tointeger
, since this is an attachment id, which are typically represented by integers in the API response.How has this been tested?
Screenshots
No user facing changes
Types of changes
Breaking change (fix or feature that would cause existing functionality to not work as expected), since it changes an option name
Checklist:
*.native.js
files for terms that need renaming or removal).