-
Notifications
You must be signed in to change notification settings - Fork 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
Site Editor: site icon not displayed when set #51482
Comments
Here are my findings: Site logo and site title are fetched from the On WP.com this endpoint should live at Related entity is defined here It uses an empty string as Any idea how we could access the |
A quick hack that leverages that the endpoint is preloaded: D59634-code In this case it won't fire a request but load the preloaded endpoint. |
Looking forward to any thoughts @mattwiebe @Addison-Stavlo @jeyip |
cc @creativecoder since he is working on a similar issue in #51396. |
To solve this issue in the short term for WP.com, I think something like D59634-code is what we should go with for now. It addresses the troubles I was having resolving Simple vs. Atomic API calls with #51477, so that's helpful! Long term, I'm not convinced that the site icon url belongs at the root endpoint. It seems like it might belong in settings? But there's a lot of issues to work out--for example, the settings endpoint is only accessible by admin users for the site, currently, and anyone who can load the editor should be able to fetch the site icon url. |
Just found this trac ticket and this comment as well, further confirming the "hacky-ness" of putting the site icon in the root endpoint and depending on It seems like we should start working on a long term solution for this sooner rather than later. |
I dug into this a little, and here's a Gutenberg PR that removes the need for transforming |
Are you sure that's going to fix it? 🤔 On WP.com it's a proxied request issue and it is not related to the context query parameter. The |
@david-szabo97 You're right, that Gutenberg change won't fix it (even though I had convinced myself it would 🤦♂️) However, I think I did find a solution! After an epic xdebug session with the wpcom API, I discovered that the root endpoint is available for Simple sites, in the form of D59822-code should resolve this issue. |
With #51477 merged:
|
This is now working on simple sites and atomic sites. |
If you set the site icon in core it will replace the default WordPress button in the browsing sidebar toggle. The same thing should happen in WP.com integration but it's not working as expected currently.
Note 1: It's not possible to set site the icon in core through UI with FSE is enabled at the moment, since we hide the Customizer menu item. You can still reach it directly by appending
wp-admin/customize.php
to your site's URL.Note 2: It's possible to do this on WP.com through Calypso's settings:
The text was updated successfully, but these errors were encountered: