-
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 Block: problems with Core/Plugin block loading #33177
Comments
@creativecoder As it looks like this issue was fixed in this PR I'm going to go ahead and close this out, but if you're still experiencing the original issue, feel free to add a comment with additional details and I’ll be glad to reopen it. |
Hi @kathrynwp, thanks for taking a look. This is actually a different issue than what that PR addressed. The fundamental problem has to do with
For the Site logo block, now that the Core and Gutenberg versions are more in sync, there's probably no noticeable effect of either of those problems. But they are both lurking beneath the surface waiting to cause bugs when running the Gutenberg plugin. |
Thanks for the clarification, I've reopened this! |
👋🏼 Hey folks. I'm doing a sweep of high priority labeled issues to ensure the label remains actionable and relevant. As a result, I've removed the label from this issue because the work here has stalled and it's not clear whether this problem remains. In order to add the label back, @creativecoder can you provide a current status and confirm whether you believe it needs to be high priority so we can mobilize efforts? Ideally, anything with that label is getting actively worked on and moved forward. |
Thank @annezazu ! It appears the underlying problem is still there, as I don't see any changes to how site-logo/index.php is loaded in Gutenberg. However, this is no longer high priority, as the site-logo block php file is duplicated in Core, where it is loaded earlier (before the So this is now more a latent issue in Gutenberg that will reveal itself if
|
Thank you so much for this detailed recap and for helping confirm the label removal 🙌🏼 |
Description
Issues with loading the Site Logo block
Gutenberg plugin with WP 5.7.2
The hooks that update the
site_logo
option from thecustom_logo
theme mod, when the logo is updated in the Customizer, do not run. The result is that the logo cannot be updated from the Customizer.I believe this is happening because
_sync_custom_logo_to_site_logo
is added via thesetup_theme
action, which has already been executed when thesite-logo.php
file is included, so the hooking intosetup_theme
has no effect at that point.Gutenberg plugin with WP 5.8 RC
Both the Core php file and the plugin php file for the block are included. This results in all hooked functions being registered twice. I haven't seen any bugs with this yet, but I'm sure it could lead to unexpected results.
Step-by-step reproduction instructions
Expected behaviour
The logo image set in the Customizer shows as the site logo
Actual behaviour
The previous logo is displayed.
WordPress information
Device information
The text was updated successfully, but these errors were encountered: